GNU bug report logs - #21215
icecat can't be started by basename only

Previous Next

Package: guix;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Fri, 7 Aug 2015 22:29:01 UTC

Severity: normal

Tags: moreinfo

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: taylanbayirli <at> gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 21215 <at> debbugs.gnu.org
Subject: bug#21215: icecat can't be started by basename only
Date: Sat, 08 Aug 2015 11:44:58 +0200
Danny Milosavljevic <dannym <at> scratchpost.org> writes:

> Hello,
>
> right now on the GuixSD from the website I have about 12 copies of
> icecat installed in /gnu/store but I can start none of them by typing
>
>   $ icecat
>
> Why not?

In Unix-like systems, an executable needs to be in any of the
colon-separated directories in the PATH environment variable, otherwise
it won't appear as a shell command.  (E.g. a typical value for PATH
might be "/bin:/sbin:/usr/bin:/usr/sbin".)

In Guix, we typically install a package into our "profile" by running
"guix package -i the-package", and add the 'bin' and 'sbin'
sub-directories in the profile to PATH.

A user's profile is typically under:

/var/guix/profiles/per-user/<username>

so you can add the following lines to your ~/.bash_login or ~/.profile
file:

export PATH=/var/guix/profiles/per-user/<username>/sbin:$PATH
export PATH=/var/guix/profiles/per-user/<username>/bin:$PATH

By the way, every time you use a "guix package" command to edit your
profile, a new "generation" of your profile is created, and you can
roll-back to previous generations when you want, for example in case
updated packages in the new generation happen to have a bug.  The 12
copies of IceCat in your /gnu/store might belong to old generations of
your profile, which you can delete with the "guix package -d" command
(read the documentation please!), and then run the garbage collector
"guix gc" to delete the stale IceCat copies in the store.

> Also, it isn't in Xfce4's Application Finder either (while for example
> HexChat is).

I don't know anything about Xfce, but possibly the problem will be
solved when you install IceCat into your profile with "guix package -i".

Hope that helps,
Taylan




This bug report was last modified 9 years and 100 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.