From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GOZ+I9rU52MPpQAAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 18:48:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8CGEI9rU52OmcQEA9RJhRA (envelope-from ) for ; Sat, 11 Feb 2023 18:48:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4CFDA320AF for ; Sat, 11 Feb 2023 18:48:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQtyU-0007vW-27; Sat, 11 Feb 2023 12:47:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQtyQ-0007pT-Gs for help-guix@gnu.org; Sat, 11 Feb 2023 12:47:42 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQtyO-0004Wr-Jg for help-guix@gnu.org; Sat, 11 Feb 2023 12:47:42 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4PDdNV6W0Vz9s3n; Sat, 11 Feb 2023 17:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1676137659; bh=N3Mgqqvvh8b3fSi2nV+PHBSN40SJ2zdXhSpAgbALUWI=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=ldFq16HF46IE7BrHchmUiOFLHTsNxZ0u1xKnJq1Lo/6kFEUseeJKHgXhf73RNkb/x 7rnWe+kzTTypRHCDyCbyL5FcnQipo9bWyOZM5boY1/ScFW/hzaQ4dtUsS77NMbx0Ka 47FyZwna41VyPxm9pYnuel1gAe8T8XfLk7BaLCBg= X-Riseup-User-ID: A8873F85FC1793BD90AD8E6941BEC6C8D27460913F6ED76335D99A829A8D9FF4 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4PDdNV1468z5wp2; Sat, 11 Feb 2023 17:47:37 +0000 (UTC) References: <00645283-6540-ea05-aba2-8997d32b16c1@posteo.de> <87fscnis4q.fsf@gmail.com> <877cwx6kdh.fsf@posteo.net> <87357ik8ur.fsf@gmail.com> <7295d41b-9ee2-41ce-56ac-3ebbf6963378@posteo.de> <867cwtohyp.fsf@gmail.com> <87bkm53pv8.fsf@riseup.net> <1cec888b-8d3e-65f7-502a-ae96d85e8149@posteo.de> <877cwqzleq.fsf@riseup.net> <637ec0ba-f3e5-7948-a201-347c63239874@posteo.de> From: Csepp To: Gottfried Cc: Csepp , zimoun , help-guix@gnu.org Subject: Re: attempt to create a profile Date: Sat, 11 Feb 2023 17:30:47 +0000 In-reply-to: <637ec0ba-f3e5-7948-a201-347c63239874@posteo.de> Message-ID: <86k00onlft.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676137690; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+xRi3wd46olsWKjNwlwparpOCXefk7vjAB5Yg91miS0=; b=Yv+HBz524yPG6pAJyqiX71z3spioTJQpazYb/K84DDSi1iWD454CCrGmCMsPSJHTz8Cuq2 lqKoeCqdJyDbcEKSR5DK+POFWVofpHCPfSC/R0M8DdrwTMCd8ljPRTK1Gi/FYzWUqRSVhl sxJyF8Ke/O1IaYKyTZu77jIHHIL7voMleovYV1x3WLUpJG56Fh54K0bbsoZoqMO5bqekHz Fobbgqz/XT3hxhKUJ0MDtkgEyNgcDiaOQsWHU7fQuSMBAeoYQ3jBU/d5Y8FC3hY9hAAXfA ItVDW/4oxMt3Wn2Sm7DPIAJUwbaUA5RF200wiOS8WZ2LKBpo2e55N0qDu8NPnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=ldFq16HF; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676137690; a=rsa-sha256; cv=none; b=FmkczYg9o4LWHrrU91ZIWusjUxYjji5/OcStfeIhj+U5dbAqHyLAy2/CodvL1W0SAuUUOD /BhjK3+ho0fn5LxwO2mhIy74/rACkEyTh4IoDyQnn1/avBiXEch4CeqkTk5w+bYvJre7oP HdlZG726h/KqsBH3Ey3CCP4fa4wpC+3SCS49OeftJv8tAteHkiMfnA/JQlUvVRLgHDfRhA dQA5D59atjeKUSYPj2Ygm5TQweAf5nRpQt59sUkzGws3ythRBt9lBjf/6Gx7st6gH7O/j7 dDnvwLQ7zQZKXPy5md/V52q/ytcS6i61bnoeoNFlitwZGk6NvLD1vpv0kMoI5g== X-Migadu-Queue-Id: 4CFDA320AF X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=ldFq16HF; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net X-Migadu-Spam-Score: -7.60 X-Spam-Score: -7.60 X-TUID: FUF2ZZW/RnMD Gottfried writes: > [[PGP Signed Part:Undecided]] > Hi, > > I wanted to create a profile with "Musescore 3.6" > but 3 times it failed during building process. > > So I had to create the profile with "Musescore 4". > > Now I have Musescore 4 in my main profile and in my Musescore profil. > > So the problem is now, how do I know when opening "Musescore" which > one will open. > Using the menu it opens "musescore 4" in my main profile > Using an icon it opens "musescore 3.6" the earlier version, which I > need as well. > > 1. > if I enter "musescore" in my bash > it doesn=E2=80=99t open this package. > Why? > If this profile is open/sourced, it should open this package. > Other packages from my main profile like icecat, gedit, pluma open > immeadiately. > > ...................................................................... > Today, without doing anything > I did a: > guix package -p /home/gfp/Projekte/Musescore/guix-profil > > and the outcome was: > > gfp@Tuxedo ~$ guix package -p /home/gfp/Projekte/Musescore/guix-profil > --list-installed > musescore 4.0 out /gnu/store/7iwmb7qf56ybrl0ayzyr3w14h3azdg8p-musescore-4= .0 > gfp@Tuxedo ~$ > ...................................................................... > This means I was already in this profile, or better to say, both > profiles were open at the same time > without sourcing it today. It means that that profile has that package installed. Running the above command does not activate the profile, it just inspects it. > This means for me that, when I tried to source this profile earlier, > I opened it, but didn=E2=80=99t manage to close it. There is no (easy) way to close a profile if it was sourced. If you used guix shell to enter it, closing it is as easy as exiting the shell. > 2. > Is it better to close it, or leave several profiles open at the same time? There is no "better". It depends on what you are doing. Also I'm not sure what you think closing a profile means. Are you talking about having multiple profiles opened in the same shell? Or all the profiles open in all the shells? But honestly I don't think you have to worry about this if you only have one or two profiles in addition to the default user level and system level ones. And if you do want to worry: the worst thing that can happen with lots of profiles open in the same shell is that you get confused about which package comes from which profile. > 3. > Is it a problem when both/more profiles are always open? If you want them to literally always be open, just merge them with your default profile, otherwise you are just asking for trouble. If you mean "often" and not "always", then no, it's just that the mental overhead increases. > 4. > what does it mean for my bash/MATE terminal? > Shouldn=E2=80=99t I be able to open "musescore" in both profiles? > Is so, what do I have to enter in the bash to open this or that "musescor= e" The terminal emulator does not matter, only the bash process it runs matters. If you run the musescore command, its location is looked up in the PATH environment variable. The profile that was loaded last "wins". That's why I recommend thinking of profiles not so much as being opened and closed, but as being stacked on top of each other. Whatever is at the top of the stack is what bash (and other programs) look at first. If multiple profiles in your "stack" provide the same command, then the easiest way to refer to a specific one is by using its path in the profile: ~/.guix-profile/bin/musescore: this is the one in your default profile /home/gfp/Projekte/Musescore/guix-profil/bin/musescore: this is the one in your custom profile ps.: I'd appreciate if you kept the threads in bottom-reply order, because it's much harder to refer back to previous messages if you don't.