unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Gottfried <gottfried@posteo.de>
To: Csepp <raingloom@riseup.net>
Cc: zimoun <zimon.toutoune@gmail.com>, help-guix@gnu.org
Subject: Re: attempt to create a profile
Date: Sat, 11 Feb 2023 16:20:29 +0000	[thread overview]
Message-ID: <637ec0ba-f3e5-7948-a201-347c63239874@posteo.de> (raw)
In-Reply-To: <877cwqzleq.fsf@riseup.net>


[-- Attachment #1.1.1: Type: text/plain, Size: 4009 bytes --]

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’t 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.

This means for me that, when I tried to source this profile earlier,
I opened it, but didn’t manage to close it.

2.
Is it better to close it, or leave several profiles open at the same time?

3.
Is it a problem when both/more profiles are always open?


4.
what does it mean for my bash/MATE terminal?
Shouldn’t 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 "musescore"


I am hacking on the very basics

Kind regards

Gottfried



Am 09.02.23 um 20:20 schrieb Csepp:
> 
> Gottfried <gottfried@posteo.de> writes:
> 
>> [[PGP Signed Part:Undecided]]
>> Hi,
>>
>> thanks for your help.
>>
>> I tried to open this profile,
>>
>> by
>>
>>> gfp@Tuxedo ~$  source /home/gfp/Projekte/Musescore/guix-profil/etc/profile
>>>
>> or
>>
>>> gfp@Tuxedo ~$ guix shell -p /home/gfp/Projekte/Musescore/guix-profil
>>
>> but it didn’t happen anything.
> 
> It's normal, it normally doesn't show anything.
> 
>> How can I know, that I am now in this profile?
>>
>> Shouldn’t bash show me something?
> 
> If you directly source the etc/profile script, GUIX_PROFILE does not get
> defined, so bash doesn't know you loaded a profile.
> Which is actually "correct", since sourcing it is not the same as
> entering it using guix shell/environment.  Sourcing directly modifies
> the running process's environment variables, so exiting bash would not
> get you back to a default environment, it would most likely just close
> the terminal emulator.  But if you are in a genuine `guix shell`,
> running the exit builtin command gets you back to the process where guix
> shell was run from.
> 
> If you used guix shell then I'm pretty sure it should show someting.
> Running `guix shell -p ~/.guix-profile -- bash` does show the [env]
> prompt for me, so either your bash is configured differently or your
> login shell is not bash.  For example, my login shell is Zsh, which
> doesn't have the same customization, I had to add a similar prompt hack
> myself.
> 
>> And when I opened the package "musescore" it opened the package
>> musescore in my other profile.
>> So I guess I am not in this profile.
> 
> Did you open it from bash or from a desktop app launcher?
> The environment variables are only changed locally in the bash process
> you ran source from, or the bash process that guix shell spawned.
> If you did run it from there and it launched the wrong one, then could
> you post the output of
> 
> guix package -p /home/gfp/Projekte/Musescore/guix-profil --list-installed
> 
> ?
> 
> Maybe you accidentally mixed up which version is installed in which
> profile, it happens.

-- 



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2023-02-11 16:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-28 15:09 attempt to create a profile Gottfried
2023-01-06 15:45 ` Simon Tournier
2023-01-09 15:59   ` Gottfried
2023-01-11 21:27     ` Simon Tournier
2023-01-11 16:55   ` Gottfried
2023-02-04 23:36   ` Kyle Andrews
2023-02-06 17:21     ` Simon Tournier
2023-02-07 10:06       ` Gottfried
2023-02-07 11:03         ` zimoun
2023-02-07 13:33           ` Gottfried
2023-02-08  1:25             ` Csepp
2023-02-08  9:58               ` Simon Tournier
2023-02-09 14:21                 ` Gottfried
2023-02-09 14:44               ` Gottfried
2023-02-09 19:20                 ` Csepp
2023-02-11 16:20                   ` Gottfried [this message]
2023-02-11 17:30                     ` Csepp
2023-02-12 12:15                       ` Gottfried
2023-02-14  4:45       ` Kyle Andrews
2023-02-14  5:40         ` 宋文武
2023-02-14  6:00           ` Kyle Andrews
2023-02-14 11:04             ` Simon Tournier
     [not found] <mailman.95.1673024475.17576.help-guix@gnu.org>
2023-01-08  9:21 ` Gottfried
2023-01-08 10:52   ` Csepp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=637ec0ba-f3e5-7948-a201-347c63239874@posteo.de \
    --to=gottfried@posteo.de \
    --cc=help-guix@gnu.org \
    --cc=raingloom@riseup.net \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).