Guix on Debian 11 - Cant run or find applications from Guix

OpenSubmitted by bo0od.
Details
7 participants
  • bo0od
  • Luke Burgess
  • Giovanni Biscuolo
  • Maxim Cournoyer
  • Maxime Devos
  • Mark H Weaver
  • zimoun
Owner
unassigned
Severity
normal
B
(address . bug-guix@gnu.org)
e2e42e82-4581-a7e0-8944-a845d9851b37@riseup.net
Hi There,
I have installed Guix package manager over debian bullseye 11 then i installed a package using guix (after running guix pull) with two ways: (x package i tried is icecat)
guix install x
sudo -i guix install x
both of the commands worked but the x package has no icon nor i can run it using terminal.

ThX!
M
M
Maxime Devos wrote on 3 Jun 23:26 +0200
a6b07c8d78ee553736d70b756317bbaf6c835e41.camel@telenet.be
bo0od schreef op wo 02-06-2021 om 18:56 [+0000]:
Toggle quote (10 lines)> Hi There,> > I have installed Guix package manager over debian bullseye 11 then i > installed a package using guix (after running guix pull) with two ways: > (x package i tried is icecat)> > guix install x> > sudo -i guix install x
There should be no need to install anything as root,unless you make a habit of logging in as the root userand work from there (not recommended).
(Except the guix daemon itself maybe? But that's "sudo guix pull"I think, not "sudo guix install guix". I'm on Guix Systemmyself.)
Toggle quote (3 lines)> both of the commands worked but the x package has no icon nor i can run > it using terminal.
Which icon are you looking at? The icon in a desktop menu?The ‘cat around a globe’ image you'd see on ‘new tab’ windowsabove the search bar? The same image, but downscaled, before‘New Tab’ in the tab bar?
Toggle quote (2 lines)> nor i can run it using terminal
I can use IceCat just fine from the terminal (Guix System),more details are needed, ‘I can't run it’ is rather vague.Is there any log output, does IceCat start but crash soon,maybe ‘bash: icecat: command not found’, ...?
Greetings,Maxime.
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYLlJHRccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qbmAP9Q/R4rs86wFa5hodpSc7inPhS/kf2JhALo3Fa0dO66kAD/UnSPgeaYYomSa+PoRVWxZSmTj1X+kFS2aSpVZ8g3nQI==d0xr-----END PGP SIGNATURE-----

B
d81cc63c-559f-ef24-7a08-83fe3f10ffb4@riseup.net
Toggle quote (1 lines)> There should be no need to install anything as root,
> unless you make a habit of logging in as the root user > and work from there (not recommended).
I know i just mentioned this info to say with or without root nothing is appeared to be readable from the system.
> Which icon are you looking at? The icon in a desktop menu? > The ‘cat around a globe’ image you'd see on ‘new tab’ windows > above the search bar? The same image, but downscaled, before > ‘New Tab’ in the tab bar?
There is nothing exist of any kind from icons. (icecat starting icon in the applications menu or so)
> I can use IceCat just fine from the terminal (Guix System), > more details are needed, ‘I can't run it’ is rather vague. > Is there any log output, does IceCat start but crash soon,
I can use that as well fine in guixsd, But not in debian.
> maybe ‘bash: icecat: command not found’, ...?
yes, and if i type ice and press Tab nothing appearing.
So whether graphical or terminal nothing indicating that there is a software installed/exist in the system (though the software installed and exist)
Note:
manually going to /home/user/.guix-profile/share/applications/icecat.desktop and pressing it it will run icecat.(but thats not how applications should be running)

Maxime Devos:
Toggle quote (37 lines)> bo0od schreef op wo 02-06-2021 om 18:56 [+0000]:>> Hi There,>>>> I have installed Guix package manager over debian bullseye 11 then i>> installed a package using guix (after running guix pull) with two ways:>> (x package i tried is icecat)>>>> guix install x>>>> sudo -i guix install x> > There should be no need to install anything as root,> unless you make a habit of logging in as the root user> and work from there (not recommended).> > (Except the guix daemon itself maybe? But that's "sudo guix pull"> I think, not "sudo guix install guix". I'm on Guix System> myself.)> >> both of the commands worked but the x package has no icon nor i can run>> it using terminal.> > Which icon are you looking at? The icon in a desktop menu?> The ‘cat around a globe’ image you'd see on ‘new tab’ windows> above the search bar? The same image, but downscaled, before> ‘New Tab’ in the tab bar?> >> nor i can run it using terminal> > I can use IceCat just fine from the terminal (Guix System),> more details are needed, ‘I can't run it’ is rather vague.> Is there any log output, does IceCat start but crash soon,> maybe ‘bash: icecat: command not found’, ...?> > Greetings,> Maxime.>
M
M
Maxime Devos wrote on 5 Jun 11:47 +0200
fe6389b86adea892cda1b40823d25bb99af9420e.camel@telenet.be
bo0od schreef op do 03-06-2021 om 23:18 [+0000]:
Toggle quote (8 lines)> > Which icon are you looking at? The icon in a desktop menu?> > The ‘cat around a globe’ image you'd see on ‘new tab’ windows> > above the search bar? The same image, but downscaled, before> > ‘New Tab’ in the tab bar?> > There is nothing exist of any kind from icons. (icecat starting icon in > the applications menu or so)
For clarification, which option applies?
(a) IceCat does not appear in the application menu at all (b) or: IceCat does appear in the application menu, but its icon is missing (but there is still some text like ‘GNU IceCat webbrowser’)
Toggle quote (10 lines)> > I can use IceCat just fine from the terminal (Guix System),> > more details are needed, ‘I can't run it’ is rather vague.> > Is there any log output, does IceCat start but crash soon,> > I can use that as well fine in guixsd, But not in debian.> > > maybe ‘bash: icecat: command not found’, ...?> > yes, and if i type ice and press Tab nothing appearing.
What's the output of "echo $PATH"? Normally, $HOME/.guix-profile/binshould be present in $PATH, but maybe somehow it isn't.
Also, what's the output of ls -l ~/.guix-profile/bin/icecat
and ls -l ~/.guix-profile/bin?
Greetings,Maxime.
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYLtISRccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7tBmAP9AmyxhvHXuulN/7NSfE4CJxCFiuv2JuHAMTlGSOZaJFwEA/EI2OAt1tSzdOmT+NRwsZy1+H8afr2qCh4e33en/GwA==h1PK-----END PGP SIGNATURE-----

B
013bc325-d178-4eb1-68fb-e96865540b62@riseup.net
Toggle quote (2 lines)> (a) IceCat does not appear in the application menu at all
This one
> What's the output of...
Check the uploaded image.
Maxime Devos:
Toggle quote (39 lines)> bo0od schreef op do 03-06-2021 om 23:18 [+0000]:>> > Which icon are you looking at? The icon in a desktop menu?>> > The ‘cat around a globe’ image you'd see on ‘new tab’ windows>> > above the search bar? The same image, but downscaled, before>> > ‘New Tab’ in the tab bar?>>>> There is nothing exist of any kind from icons. (icecat starting icon in>> the applications menu or so)> > For clarification, which option applies?> > (a) IceCat does not appear in the application menu at all> (b) or:> IceCat does appear in the application menu, but its icon> is missing (but there is still some text like ‘GNU IceCat webbrowser’)> >> > I can use IceCat just fine from the terminal (Guix System),>> > more details are needed, ‘I can't run it’ is rather vague.>> > Is there any log output, does IceCat start but crash soon,>>>> I can use that as well fine in guixsd, But not in debian.>>>> > maybe ‘bash: icecat: command not found’, ...?>>>> yes, and if i type ice and press Tab nothing appearing.> > What's the output of "echo $PATH"? Normally, $HOME/.guix-profile/bin> should be present in $PATH, but maybe somehow it isn't.> > Also, what's the output of> ls -l ~/.guix-profile/bin/icecat> > and> ls -l ~/.guix-profile/bin> ?> > Greetings,> Maxime.>
Attachment: guixpaths.png
M
M
Mark H Weaver wrote on 5 Jun 19:49 +0200
878s3ogq0m.fsf@netris.org
Hi,
bo0od <bo0od@riseup.net> writes:
Toggle quote (11 lines)> I have installed Guix package manager over debian bullseye 11 then i > installed a package using guix (after running guix pull) with two ways: > (x package i tried is icecat)>> guix install x>> sudo -i guix install x>> both of the commands worked but the x package has no icon nor i can run > it using terminal.
The reason you can't simply type "icecat" in the terminal is becauseGuix puts the 'icecat' executable in ~/.guix-profile/bin/icecat, butthat directory is not in your PATH environment variable.
Likewise, the reason there's no icon, i.e. no entry for IceCat in thelist of applications known by desktop environments in Debian, is becauseby default desktop environments look in /usr/share/applications for the".desktop" files, but Guix puts the desktop files in~/.guix-profile/share/applications.
On a standalone Guix system, these issues are addressed by making sureyour environment variables are set as needed to make these things work.
~/.guix-profile/etc/profile should contain Bash shell commands that setthe environment variables appropriately for the set of packagescurrently installed.
If you type "source ~/.guix-profile/etc/profile" from a Bash shell, itloads the needed environment variable settings into that shell instance,and henceforth you should be able to run "icecat" by simply typing itsname, *but* _only_ in that shell or other processes later spawned fromthat shell. That's because environment variable settings are _not_global. Each process has its own set of environment variable settings.Typically, newly spawned processes inherit their environment variablesettings from the parent process that launched them.
In order to set your environment variables appropriately for your entiredesktop environment, you must arrange for the environment variablesettings to be loaded before the desktop session is launched. I don'tremember off-hand how to do this in Debian. I seem to recall that oneapproach is to create an ~/.xsessionrc file, which should be anexecutable Bash script that loads the needed environment variablesettings and then launches the desktop environment. Maybe there's abetter way.
I'm surprised this isn't well-trodden territory, long ago documented inour manual, but I guess it isn't. It would be good if some Debianexpert(s), or at least someone who runs Guix on top of Debian, wouldstep forward to fill in the details.
Thanks for raising this issue.
Regards, Mark
-- Disinformation flourishes because many people care deeply about injusticebut very few check the facts. Ask me about https://stallmansupport.org.
G
G
Giovanni Biscuolo wrote on 17 Jun 16:56 +0200
87wnqsletx.fsf@xelera.eu
Hi,
I use Guix on top of Debian, but I installed it long ago "manually" andnot via the Debian package "guix"... anyway once installed there are nodifferences :-)
Mark H Weaver <mhw@netris.org> writes:
[...]
Toggle quote (7 lines)>> both of the commands worked but the x package has no icon nor i can run >> it using terminal.>> The reason you can't simply type "icecat" in the terminal is because> Guix puts the 'icecat' executable in ~/.guix-profile/bin/icecat, but> that directory is not in your PATH environment variable.
bo0od please ensure you have this in your ~/.bash_profile:
Toggle snippet (6 lines)
GUIX_PROFILE="$HOME/.config/guix/current". "$GUIX_PROFILE/etc/profile"

Actually, I set all the env variables for Guix in my ~/.profile that(AFAIU) on Debian is included by default in ~/.bash_profile:
My ~/.bash_profile:
Toggle snippet (7 lines)
if [ -f ~/.profile ]; then . ~/.profilefi

My (edited) ~/.profile:
Toggle snippet (25 lines)
### Guix settings## add Guix current pathexport PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"# add Guix infopathexport INFOPATH="$HOME/.config/guix/current/share/info:$INFOPATH"# Guix locpathexport GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"# set default Guix profileexport GUIX_PROFILE="$HOME/.guix-profile"# set Guix extra profilesexport GUIX_EXTRA_PROFILES="$HOME/.guix-extra-profiles"# set timezone data dir (zoneinfo)export TZDIR=${GUIX_PROFILE}/share/zoneinfo# source default Guix profile. $GUIX_PROFILE/etc/profile
### XDG_CONFIG_DIRS fixes# see Message-ID: <87r2asweu1.fsf@roquette.mug.biscuolo.net>unset XDG_CONFIG_DIRSexport XDG_CONFIG_DIRS="${GUIX_PROFILE}/etc/xdg:/etc/xdg"

Actually I don't know if all env variables are still really needed, Ineed to test things
Also (I don't know why) in my home this two profiles are differing:
Toggle snippet (6 lines)
$HOME/.config/guix/current -> /var/guix/profiles/per-user/root/current-guix$HOME/.guix-profile -> /var/guix/profiles/per-user/giovanni/guix-profile

so I'm using my user (giovanni) profile for my GUIX_PROFILE envvariable.
[...]
Toggle quote (5 lines)> That's because environment variable settings are _not_ global. Each> process has its own set of environment variable settings. Typically,> newly spawned processes inherit their environment variable settings> from the parent process that launched them.
This is the reason why with Guix installed programs we have to set thevariables for each shell we use:
1. for the bash shell you do this by setting the variables in~/.bash_profile (or ~/.profile like I'm doing)
Toggle quote (6 lines)> In order to set your environment variables appropriately for your entire> desktop environment, you must arrange for the environment variable> settings to be loaded before the desktop session is launched. I don't> remember off-hand how to do this in Debian. I seem to recall that one> approach is to create an ~/.xsessionrc file,
Yes, AFAIK Mark is right:
2. for the desktop environment (shell) I include ~/.profile in my~/.xsessionrc (because I like to keep all variables in one place)
My ~/.xsessionrc:
Toggle snippet (7 lines)
if [ -f ~/.profile ]; then . ~/.profilefi

This way all your xsessions (all X sessions should read ~/.xsessionrc)will have the right environment (from your default Guix profile) and youwill be able to start Guix installed programs there (i.e. I use i3 forthis and it works well)
For the record, application and icons are sourced by XDG compliantdesktop environment from the XDG_DATA_DIRS env variable, that variableshould be in your default user profile, in$HOME/.guix-profile/etc/profile, that you should source both in~/.bash_profile and ~/.xsessionrc as explained above
Toggle quote (2 lines)> which should be an executable Bash script
AFAIU it can be a regular file
[...]
Toggle quote (5 lines)> I'm surprised this isn't well-trodden territory, long ago documented in> our manual, but I guess it isn't. It would be good if some Debian> expert(s), or at least someone who runs Guix on top of Debian, would> step forward to fill in the details.
I'll try do propose some patch for the Guix manual but... don't holdyour breath, I need some testing.
Happy hacking! Gio'
[...]
-- Giovanni Biscuolo
Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----
iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmDLYqsMHGdAeGVsZXJhLmV1AAoJENN9DqfOzDkSuoUP/j+mdBATqh6kKiamwJh1Lts4c4IZx1IYER0xOiNBAsS9DmjGxI7euIZyakc1QdJal0oe/eMe43HR6tqYcaFlFOCVZuiXbyf5UDnDI/p88V+dPwhmhC1UbGYECNcPXuGWN1SNqcWUsAoA8780UmaeA9l7CNBFnnViw6BhVWfOjNv88wRs5fmpN3obE9SaA8yMhYVNMJitAwrlR2+hQClSGTK4CdRqPT+HflL1CEO/3m0EqBjEyePKEbvSaeBpB1z2794gg3+73y3E7U9CYGw0pBKEaDUBnSbpbeAGAvnwnRDqho+h3/Z5j9GOQlhNSCsIKbAFlXGra5VJpG9IK5ZEJ6vdyfkLTYoJoNKigIoiXCd8qX/iWuDBYR4iUHl228TubQMyWYk7GpwJtUwAfseorGS9cexzI+VnyZ8MF73719rp1e3MzCEysyZlI58eEk0u4z4FXjPA/ykQgr0FhvaRKj2qIS7Xo4M1V0D8kExhUHSsa8x1bqpiLj59AMsmWBxFK4aOIrhugCln0bUfhIjg07ab4cwy4Xg7RoNaVuhAyjpuHd1NYhqdvGVPl+k17W2e9SlQMg/VKdYz8vCIW+y88X41vQys8RTw7aJN035Zg62/SCNP+GFSC95yUWw9vpr9CWjnnnwpJBysFbSlFB1S6uqAqAYAFo9v6hVhOgceJ0H7=sbMJ-----END PGP SIGNATURE-----
Z
Z
zimoun wrote on 2 Jul 18:31 +0200
(name . bo0od)(address . bo0od@riseup.net)(address . 48796@debbugs.gnu.org)
87im1sn0dh.fsf@gmail.com
Hi,
On Wed, 02 Jun 2021 at 18:56, bo0od <bo0od@riseup.net> wrote:
Toggle quote (11 lines)> I have installed Guix package manager over debian bullseye 11 then i installed> a package using guix (after running guix pull) with two ways: (x package i> tried is icecat)>> guix install x>> sudo -i guix install x>> both of the commands worked but the x package has no icon nor i can run it> using terminal.
Does this message [1] fix your issue? If not, please provide details onwhat is wrong for you.
1: http://issues.guix.gnu.org/issue/48796#5
Cheers,simon
PS: I plan to mark the bug as notabug, WDYT?
B
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 48796@debbugs.gnu.org)
3ec187dc-b525-a92a-f278-2aeb87d2f003@riseup.net
Toggle quote (2 lines)> Does this message [1] fix your issue?
"If you type "source ~/.guix-profile/etc/profile" from a Bash shell, it loads the needed environment variable"
yes it worked, but thats not really what im asking as this is workaround for the issue but im asking for a solution to the users as they can type the app name and it should run and icon should be shown somewhere on application menu or desktop or so.
flatpak , snap which work almost similarly to guix can do that then guix should do that as well.
otherwise guix should mention that there wont be icons nor ability to run the applications from terminal unless you do 1 2 3 after guix app installaion which is sadly a downside for new comers.



zimoun:
Toggle quote (1 lines)> Does this message [1] fix your issue?
B
c06bdc99-fbb5-9716-5c4b-408e31649757@riseup.net
Toggle quote (1 lines)> I'll try do propose some patch for the Guix manual but... don't hold
> your breath, I need some testing.
Sure tyt, but its a disaster way for guix for not doing this automatically. Imagine new user he should do stuff manually after installing guix through apt.. yeah he (mostly) wont stay around after that to be a guix user.
Giovanni Biscuolo:
Toggle quote (2 lines)> I'll try do propose some patch for the Guix manual but... don't hold> your breath, I need some testing.
L
L
Luke Burgess wrote on 23 Aug 02:58 +0200
Just a newb, srsly this saved me
(address . 48796@debbugs.gnu.org)
CAASP0RAcT+g31O+EYBrV9sJL3sGRoN3zk+yTH+655Pg1-AXHBg@mail.gmail.com
Toggle quote (5 lines)>If you type "source ~/.guix-profile/etc/profile">from a Bash shell, it loads the needed>environment variable settings into that>shell instance,and henceforth you>should be able to run "icecat"
Maybe I should have read and understood the GUIX manual better.... Maybe Ishould not be haphazardly putting together my config.scm files on thefly.... Maybe I shouldn't be using root bash to test modifications I planto make to my config.scm files... Maybe running GUIX on the 6 bear metalcomputers I use it on was a bad idea and I should be using VMs... But thisexplanation just saved me...Some root shells working and others notworking, boy was I confused???... and this just saved me ... Mark H Weaver,Thank you, Thank you Thank you.Just one little thing I might still be getting totaly wrong... given I knowthe classical lines:#GUIX_PROFILE="/root/.config"#. "$GUIX_PROFILE/etc/profile"What would this do differently in root, if anything?#source /root/.config/etc/profile
Attachment: file
Z
Z
zimoun wrote on 23 Aug 12:42 +0200
Re: bug#48796: Guix on Debian 11 - Cant run or find applications from Guix
(name . bo0od)(address . bo0od@riseup.net)(address . 48796@debbugs.gnu.org)
87bl5owigo.fsf@gmail.com
Hi,
On Thu, 15 Jul 2021 at 13:09, bo0od <bo0od@riseup.net> wrote:
Toggle quote (13 lines)>> Does this message [1] fix your issue?>> "If you type "source ~/.guix-profile/etc/profile" from a Bash shell, it loads> the needed environment variable">> yes it worked, but thats not really what im asking as this is workaround for> the issue but im asking for a solution to the users as they can type the app> name and it should run and icon should be shown somewhere on application menu> or desktop or so.>> flatpak , snap which work almost similarly to guix can do that then guix> should do that as well.
I have never used Flatpack but from the doc, I read:
Toggle snippet (3 lines)$ flatpak run org.gimp.GIMP
https://docs.flatpak.org/en/latest/using-flatpak.html#running-applications
Then reading:
https://docs.flatpak.org/en/latest/desktop-integration.htmlhttps://docs.flatpak.org/en/latest/conventions.html
I am not convinced that Guix should follow the Flatpack approach bydefault. And somehow, it is not what “guix pack” already does. ;-)
About Snap, I have not been able to get the right doc.
Toggle quote (4 lines)> otherwise guix should mention that there wont be icons nor ability to run the> applications from terminal unless you do 1 2 3 after guix app installaion> which is sadly a downside for new comers.
As Mark explained,
In order to set your environment variables appropriately for your entire desktop environment, you must arrange for the environment variable settings to be loaded before the desktop session is launched. I don't remember off-hand how to do this in Debian. I seem to recall that one approach is to create an ~/.xsessionrc file, which should be an executable Bash script that loads the needed environment variable settings and then launches the desktop environment. Maybe there's a better way.
I'm surprised this isn't well-trodden territory, long ago documented in our manual, but I guess it isn't. It would be good if some Debian expert(s), or at least someone who runs Guix on top of Debian, would step forward to fill in the details.
it is possible to have the icons and run them from the desktoplauncher. The configuration has to be done manually though.
Therefore, a section should be added to the manual under «ApplicationSetup», IMHO.

All the best,simon
Z
Z
zimoun wrote on 23 Aug 12:20 +0200
(name . bo0od)(address . bo0od@riseup.net)
87eeakwjgd.fsf@gmail.com
Hi,
On Thu, 15 Jul 2021 at 14:05, bo0od <bo0od@riseup.net> wrote:
Toggle quote (8 lines)>> I'll try do propose some patch for the Guix manual but... don't hold>> your breath, I need some testing.>> Sure tyt, but its a disaster way for guix for not doing this> automatically. Imagine new user he should do stuff manually after> installing guix through apt.. yeah he (mostly) wont stay around after that to> be a guix user.
It is already the case for couple of configurations, see:
When using Guix on top of GNU/Linux distribution other than Guix System—a so-called foreign distro—a few additional steps are needed to get everything in place. Here are some of them.
http://guix.gnu.org/manual/devel/en/guix.html#Application-Setup
Therefore, I do not see why it should be different, i.e., the user hasto manually setup the correct configuration for icons apps as Markexplained.
Let keep open this report open as a reminder until a patch improving themanual is submitted. :-)
All the best,simon
M
M
Maxim Cournoyer wrote on 23 Sep 13:56 +0200
(name . Luke Burgess)(address . burgesl@gmail.com)(address . 48796@debbugs.gnu.org)
874kabld3l.fsf_-_@gmail.com
Hello,
Luke Burgess <burgesl@gmail.com> writes:
Toggle quote (19 lines)>>If you type "source ~/.guix-profile/etc/profile">>from a Bash shell, it loads the needed>>environment variable settings into that>>shell instance,and henceforth you>>should be able to run "icecat"> Maybe I should have read and understood the GUIX manual better.... Maybe I> should not be haphazardly putting together my config.scm files on the> fly.... Maybe I shouldn't be using root bash to test modifications I plan> to make to my config.scm files... Maybe running GUIX on the 6 bear metal> computers I use it on was a bad idea and I should be using VMs... But this> explanation just saved me...Some root shells working and others not> working, boy was I confused???... and this just saved me ... Mark H Weaver,> Thank you, Thank you Thank you.> Just one little thing I might still be getting totaly wrong... given I know> the classical lines:> #GUIX_PROFILE="/root/.config"> #. "$GUIX_PROFILE/etc/profile"> What would this do differently in root, if anything?> #source /root/.config/etc/profile
^ .config/guix/current/etc/profile ?
In any case, it doesn't matter if the user is root or something else,it should work the same for any user.
Maxim
M
M
Maxim Cournoyer wrote on 23 Sep 14:10 +0200
(name . bo0od)(address . bo0od@riseup.net)(address . 48796@debbugs.gnu.org)
87zgs3jxvr.fsf@gmail.com
Hello,
bo0od <bo0od@riseup.net> writes:
Toggle quote (13 lines)> Hi There,>> I have installed Guix package manager over debian bullseye 11 then i> installed a package using guix (after running guix pull) with two> ways: (x package i tried is icecat)>> guix install x>> sudo -i guix install x>> both of the commands worked but the x package has no icon nor i can> run it using terminal.
There are two things that Guix does to help users correctly configuretheir system so that Guix installed applications appear on PATH.
1. The guix-install.sh installation script installs a/etc/profile.d/guix.sh script that configures the PATH when logging in:
Toggle snippet (22 lines)# cat /etc/profile.d/guix.sh # _GUIX_PROFILE: `guix pull` profile_GUIX_PROFILE="$HOME/.config/guix/current"export PATH="$_GUIX_PROFILE/bin${PATH:+:}$PATH"# Export INFOPATH so that the updated info pages can be found# and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info# When INFOPATH is unset, add a trailing colon so that Emacs# searches 'Info-default-directory-list'.export INFOPATH="$_GUIX_PROFILE/share/info:$INFOPATH"
# GUIX_PROFILE: User's default profileGUIX_PROFILE="$HOME/.guix-profile"[ -L $GUIX_PROFILE ] || returnGUIX_LOCPATH="$GUIX_PROFILE/lib/locale"export GUIX_LOCPATH
[ -f "$GUIX_PROFILE/etc/profile" ] && . "$GUIX_PROFILE/etc/profile"
# set XDG_DATA_DIRS to include Guix installationsexport XDG_DATA_DIRS="$GUIX_PROFILE/share:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"
It even set XDG_DATA_DIRS, which should allow integration with the GNOMEShell and other graphical dashboards.
I suspect you didn't install Guix via this script? If so, could you trycreating the above file, closing relogin in your graphical session andreport if it fixed things for you?
Perhaps we should more strongly recommend using this installation scriptand/or augment the manual installation procedure to cover for the aboveconfiguration.
A second thing that Guix does to help users configure their environ Guixis to hinted at sourcing the profile, if the user ~/.guix-profile/binwas not already in PATH, like so:

Toggle snippet (26 lines)# env PATH=/usr/local/bin:/bin guix install zileguix install: warning: Consider running 'guix pull' followed by'guix package -u' to get up-to-date packages and security updates.
The following package will be installed: zile 2.4.15
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%The following derivation will be built: /gnu/store/015zpn0xl8fn2ff1l0vf69w127frp76a-profile.drv
0.1 MB will be downloaded zile-2.4.15 108KiB 97KiB/s 00:01 [##################] 100.0%building CA certificate bundle...building fonts directory...building directory of Info manuals...building database for manual pages...building profile with 6 packages...hint: Consider setting the necessary environment variables by running:
GUIX_PROFILE="/root/.guix-profile" . "$GUIX_PROFILE/etc/profile"
Alternately, see `guix package --search-paths -p "/root/.guix-profile"'.
Didn't you see this on your terminal after installing the Guixapplications?
Thanks,
Maxim
B
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 48796@debbugs.gnu.org)
288d3c24-39fe-d6bc-5dae-dcff1018c921@riseup.net
Toggle quote (1 lines)> I suspect you didn't install Guix via this script? If so, could you try
> creating the above file, closing relogin in your graphical session and > report if it fixed things for you?
Its already answered how to fix it after installation, Thats not the only issue, The real issue is guix isnt doing this by default after installing it, You dont expect users to make crazy steps after installation just to make guix works properly.
Solution to this must developed in a way that when user install guix package then he type guix install x then it should work without further configs.
Otherwise we have snap and flatpak which both are better than guix not just with lower complexity but even more security. (snap use lxc(container)+apparmor(mac), flatpak use bubblerap (namespace/seccomp), while guix doesnt use anything by default).



Maxim Cournoyer:
Toggle quote (96 lines)> Hello,> > bo0od <bo0od@riseup.net> writes:> >> Hi There,>>>> I have installed Guix package manager over debian bullseye 11 then i>> installed a package using guix (after running guix pull) with two>> ways: (x package i tried is icecat)>>>> guix install x>>>> sudo -i guix install x>>>> both of the commands worked but the x package has no icon nor i can>> run it using terminal.> > There are two things that Guix does to help users correctly configure> their system so that Guix installed applications appear on PATH.> > 1. The guix-install.sh installation script installs a> /etc/profile.d/guix.sh script that configures the PATH when logging in:> > --8<---------------cut here---------------start------------->8---> # cat /etc/profile.d/guix.sh> # _GUIX_PROFILE: `guix pull` profile> _GUIX_PROFILE="$HOME/.config/guix/current"> export PATH="$_GUIX_PROFILE/bin${PATH:+:}$PATH"> # Export INFOPATH so that the updated info pages can be found> # and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info> # When INFOPATH is unset, add a trailing colon so that Emacs> # searches 'Info-default-directory-list'.> export INFOPATH="$_GUIX_PROFILE/share/info:$INFOPATH"> > # GUIX_PROFILE: User's default profile> GUIX_PROFILE="$HOME/.guix-profile"> [ -L $GUIX_PROFILE ] || return> GUIX_LOCPATH="$GUIX_PROFILE/lib/locale"> export GUIX_LOCPATH> > [ -f "$GUIX_PROFILE/etc/profile" ] && . "$GUIX_PROFILE/etc/profile"> > # set XDG_DATA_DIRS to include Guix installations> export XDG_DATA_DIRS="$GUIX_PROFILE/share:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"> --8<---------------cut here---------------end--------------->8---> > It even set XDG_DATA_DIRS, which should allow integration with the GNOME> Shell and other graphical dashboards.> > I suspect you didn't install Guix via this script? If so, could you try> creating the above file, closing relogin in your graphical session and> report if it fixed things for you?> > Perhaps we should more strongly recommend using this installation script> and/or augment the manual installation procedure to cover for the above> configuration.> > A second thing that Guix does to help users configure their environ Guix> is to hinted at sourcing the profile, if the user ~/.guix-profile/bin> was not already in PATH, like so:> > > --8<---------------cut here---------------start------------->8---> # env PATH=/usr/local/bin:/bin guix install zile> guix install: warning: Consider running 'guix pull' followed by> 'guix package -u' to get up-to-date packages and security updates.> > The following package will be installed:> zile 2.4.15> > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%> The following derivation will be built:> /gnu/store/015zpn0xl8fn2ff1l0vf69w127frp76a-profile.drv> > 0.1 MB will be downloaded> zile-2.4.15 108KiB 97KiB/s 00:01 [##################] 100.0%> building CA certificate bundle...> building fonts directory...> building directory of Info manuals...> building database for manual pages...> building profile with 6 packages...> hint: Consider setting the necessary environment variables by running:> > GUIX_PROFILE="/root/.guix-profile"> . "$GUIX_PROFILE/etc/profile"> > Alternately, see `guix package --search-paths -p "/root/.guix-profile"'.> --8<---------------cut here---------------end--------------->8---> > Didn't you see this on your terminal after installing the Guix> applications?> > Thanks,> > Maxim>
M
M
Maxim Cournoyer wrote on 26 Sep 07:50 +0200
(name . bo0od)(address . bo0od@riseup.net)(address . 48796@debbugs.gnu.org)
87v92nj36a.fsf@gmail.com
Hello,
bo0od <bo0od@riseup.net> writes:
Toggle quote (9 lines)>> I suspect you didn't install Guix via this script? If so, could you try>> creating the above file, closing relogin in your graphical session and>> report if it fixed things for you?>> Its already answered how to fix it after installation, Thats not the> only issue, The real issue is guix isnt doing this by default after > installing it, You dont expect users to make crazy steps after> installation just to make guix works properly.
You are right, that the installation script should probably source the/etc/profile.d/guix.sh that it installed so that things work normallyalready in the current shell.
Toggle quote (4 lines)> Solution to this must developed in a way that when user install guix> package then he type guix install x then it should work without> further configs.
I agree that making things as smooth as possible for new users is aworthy goal.
Thanks,
Maxim
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 48796@debbugs.gnu.org