Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#5652 - Apps in the /opt tree not found in path
Attached to Project:
Arch Linux
Opened by Eyolf Østrem (eyolf) - Monday, 23 October 2006, 14:04 GMT
Last edited by Thomas Bächler (brain0) - Monday, 06 November 2006, 21:45 GMT
Opened by Eyolf Østrem (eyolf) - Monday, 23 October 2006, 14:04 GMT
Last edited by Thomas Bächler (brain0) - Monday, 06 November 2006, 21:45 GMT
|
DetailsSince the latest upgrade of zsh, when it was moved from /usr/bin to /bin, I can't run programs which reside in the /opt branch without giving the full path in a terminal. This means that java programs won't run from their startup scripts since they just refer to "java". KDE for some reason works fine (because I use it as my DE?), but gnome programs don't, FF doesn't.
I don't know what has gone wrong, and hence not either which files to post here, but I'd like to get this solved.... |
This task depends upon
Closed by Woody Gilk (Shadowhand)
Saturday, 18 November 2006, 19:59 GMT
Reason for closing: Works for me
Additional comments about closing: Seems to be a user-specific problem.
Saturday, 18 November 2006, 19:59 GMT
Reason for closing: Works for me
Additional comments about closing: Seems to be a user-specific problem.
KDE, Firefox and other software in /opt places *.sh files there which adds required /opt/* directories to PATH.
# load profiles from /etc/profile.d
# (to disable a profile, just remove execute permission on it)
if [ `ls -A1 /etc/profile.d/ | wc -l` -gt 0 ]; then
for profile in /etc/profile.d/*.sh; do
if [ -x $profile ]; then
. $profile
fi
done
unset profile
fi
All the entries in /etc/profile.d/ have execution permissions set
Maybestupid question, but... have you relogged-in? Maybe zsh upgrade cleared PATH, so you should just relogin?
I ask because X terminals don't source /etc/profile.
useradd -s /bin/zsh zshuser
passwd zshuser
su - zshuser
echo $PATH
and paste the output here? Thank you.
/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/e17/bin:/opt/gnome/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/plan9/bin:/opt/qt/bin:/opt/xfce4/bin:/opt/mozilla/bin:/opt/java/jre/bin:/opt/kde/bin:/opt:/usr/sbin:/usr/bin:/sbin:/opt/gnome/bin:/home/eyolf/bin
Everything seems to be fine there.
From my own account:
/opt/kde/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/usr/games:/opt/mozilla/bin:/opt/java/jre/bin:/opt/kde/bin:/opt:/usr/sbin:/usr/bin:/sbin:/opt/gnome/bin:/home/eyolf/bin
I.e. all the ones I have added manually to the zshrc file, but not, e.g., the entries for enlightenment, which I have installed recently.