Summary: | xfce-base/xfce-utils - Xfce startup scripts does not respect user shell environment | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fab <netbox253> |
Component: | [OLD] Unspecified | Assignee: | XFCE Team <xfce> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | slim.conf |
Description
Fab
2011-10-26 11:12:04 UTC
Propably wrong setting in slim.conf that doesn't allow the environment to be respected. Attach the slim.conf and any .xnitrc or similar that might be used. Created attachment 290867 [details] slim.conf I do not have any .xinitrc or such file. Do I need one ? Login command is : > login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session I don't see why ~/.bashrc should be parsed here, but Samuli seems to see merit. From http://wiki.xfce.org/tips : > How to customize starting Xfce > > Like most UNIX terminal sessions, Xfce runs through user-customizable startup > file when it starts up. You can edit this init file to run your own scripts, > send environment variables to the GUI, etc. > > To add your own startup code, edit the xinitrc file like this: > > * Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/ > * Add your own code to the file. For example, > you could start the rxvt-unicode server: > * source $HOME/.bashrc > * # start rxvt-unicode server > * urxvtd -q -o -f I will give it a try, but is sounds strange to me that I must customize the main Xfce startup script simply to reflect a basic shell configuration file. Ok, I found the explanation. No need to customize the xinitrc script.
In my ~/.bashrc, I just need to export the wanted variable before this block :
> # Test for an interactive shell. There is no need to set anything
> # past this point for scp and rcp, and it's important to refrain from
> # outputting anything in those cases.
> if [[ $- != *i* ]] ; then
> # Shell is non-interactive. Be done now!
> return
> fi
Coming from /etc/skel/.bashrc.
Closing as per http://wiki.xfce.org/tips |