Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category System
Status Closed
Assigned To Woody Gilk (Shadowhand)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Since 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.
Comment by Roman Kyrylych (Romashka) - Monday, 23 October 2006, 19:12 GMT
you should check /etc/profile.d/*
KDE, Firefox and other software in /opt places *.sh files there which adds required /opt/* directories to PATH.
Comment by Eyolf Østrem (eyolf) - Monday, 23 October 2006, 19:28 GMT
I forgot to mention that everything in /etc/profile.d/ is in place - it just doesn't seem to be sourced. Where should I look? /etc/profile has:

# 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
Comment by Roman Kyrylych (Romashka) - Monday, 23 October 2006, 19:35 GMT
Hmm.. don't know. I'm not familar with zsh. :-/
Maybestupid question, but... have you relogged-in? Maybe zsh upgrade cleared PATH, so you should just relogin?
Comment by Eyolf Østrem (eyolf) - Monday, 23 October 2006, 20:51 GMT
Nice try, but... Yes, I have. It started several days ago, and I've logged on and off several times. Perhaps I should file this directly as a zsh bug...
Comment by Roman Kyrylych (Romashka) - Monday, 06 November 2006, 21:51 GMT
eyolf, are you running your apps from /opt/bin from some X terminal or plain text console?
I ask because X terminals don't source /etc/profile.
Comment by Woody Gilk (Shadowhand) - Tuesday, 07 November 2006, 02:39 GMT
I'm not able to reproduce this. Can you please try this:

useradd -s /bin/zsh zshuser
passwd zshuser
su - zshuser
echo $PATH

and paste the output here? Thank you.
Comment by Eyolf Østrem (eyolf) - Tuesday, 07 November 2006, 15:28 GMT
Here's the output from the new zshuser:

/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.
Comment by Woody Gilk (Shadowhand) - Wednesday, 08 November 2006, 03:02 GMT
Then it's not a problem with the zsh package at all. Maybe you need to check your ~/.zshrc ?

Loading...