On 12/19/05, Sterling Christensen <[EMAIL PROTECTED]> wrote:
When I login outside of X, at the
terminal/console/whatever-it's-called, with fish as my default shell,
$PATH is missing /usr/kde/3.5/bin and /usr/sbin
[and in a later message]:
BTW, I know /usr/sbin isn't supposed to be there as a normal user. Try
setting root's default shell to fish and login the same way to see
/usr/sbin missing.

It's not clear whether this is a bug report or request for a solution. If the second, a quick fix is to add this line to the .fish file in root's home directory:

set PATH $PATH /usr/sbin /usr/kde/3.5/bin

Agreed that /usr/sbin would be handy in the default fish $PATH for the root user - as would /sbin. Axel how about adding code similar to this (untested) to the default global fish init file:

set uid (id -u 2>/dev/null)
if test "$uid" = 0
    set PATH $PATH /sbin /usr/sbin
end

As for /usr/kde/3.5/bin, which is not so universal - it should be added to $PATH through fish's global init file by your distribution's package management system as and when appropriate. If no fish package/packager/awareness exists for your distribution, then it's up to you: global settings can be added to /usr/local/etc/fish (or /etc/fish or ~/etc/fish, depending on where you installed it), but be aware that they will be overwritten on reinstalling/upgrading fish.

Alternatively you can add a .fish file containing a line similar to the above to your skeleton directory so that when you add a new user, their home directory gets a copy. This process varies slightly between OSes, but on my system I have /etc/skel which is copied to the user's new home directory when adding a user with 'adduser -m <username>'. The advantage of this approach is that it won't be overwritten on fish reinstallation or upgrade. The disadvantage is that if you upgrade to kde x.y, all your users' ~/.fish files will need to be updated.

--
http://members.dodo.com.au/~netocrat


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to