Re: XMMS in Applications Menu?
Re: XMMS in Applications Menu?
- Subject: Re: XMMS in Applications Menu?
- From: Martin Costabel <email@hidden>
- Date: Tue, 04 Mar 2003 10:15:01 +0100
Jonas M Luster wrote:
Quoting Martin Costabel (email@hidden):
[]
When is the last time you read you init.sh?
if [ -d /sw/etc/profile.d ]; then
for i in /sw/etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
unset i
fi
is called _after_ $PATH is set and exported. It's a trivial exercise
to modify $PATH at this point.
Yeah, about as trivial as replacing /sw/bin/xmms by something else.
Paranoid nightmare? You must be kidding.
If you can't control who has admin privileges on your machine and what
they are doing, you are entitled to nightmares, indeed.
The latter (init.sh) is dependent on $SHELL, btw.
I don't quite know what you mean by this. It doesn't depend on the
user's login shell, in any case. The X11 Application menu always uses
sh, even though the user may have the default tcsh as login shell.
Well, I must be smoking crack then, sorry. My Application menu uses
/bin/zsh as the background shell (small C program to dump $ENV). Makes
no difference in this case, but, well...
Look a little closer. I don't doubt that the SHELL environment variable
is set to /bin/zsh in your case. But the fact that $SHELL is /bin/ksh or
/bin/tcsh or whatever doesn't mean that the shell scripts on the
Application menu command lines are executed in this shell. They are not.
I suppose Apple uses system(3) or something similar to execute these
lines, and this means sh. Do a "ps ejxww" in such a script to see what
is going on.
--
Martin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.