Re: starting Idesk automatically in IceWM on Lenny
> Is it?
> Let's look at /etc/X11/Xsession
> $ grep HOME /etc/X11/Xsession
> USRRESOURCES=$HOME/.Xresources
> USERXSESSION=$HOME/.xsession
> USERXSESSIONRC=$HOME/.xsessionrc
> ALTUSERXSESSION=$HOME/.Xsession
> ERRFILE=$HOME/.xsession-errors
> $ grep USERXSESSION /etc/X11/Xsession /etc/X11/Xsession.d/*
> /etc/X11/Xsession:USERXSESSION=$HOME/.xsession
> /etc/X11/Xsession:USERXSESSIONRC=$HOME/.xsessionrc
> /etc/X11/Xsession:ALTUSERXSESSION=$HOME/.Xsession
> /etc/X11/Xsession.d/40x11-common_xsessionrc:if [ -r
> "$USERXSESSIONRC" ]; then
> /etc/X11/Xsession.d/40x11-common_xsessionrc: . "$USERXSESSIONRC"
/etc/X11/Xsession.d/50x11-common_determine-startup: for
> STARTUPFILE in "$USERXSESSION" "$ALTUSERXSESSION"; do
> /etc/X11/Xsession.d/50x11-common_determine-startup:
> ERRMSG="$ERRMSG no \"$USERXSESSION\" file, no \"$ALTUSERXSESSION\"
file,"
It is. The real problem appears to be multiple instances of X
attempting to start due to having 'startx' in a shell rc.
>> Or if you need to create, or want to check, the new .xinitrc file
then it should contain:
>> #!/bin/sh
>> xrdb -merge ~/.Xdefaults &
>> icewm &
>> idesk &
>> while [ 1 ] ; do
>> sleep 1000d
>> done
> And if the session lasts longer?
> Seriously, though, why not use the standard:
> idesk &
> icewm
> ?
Because this way I can start terminals with commands ending with &
**after** the wm has started, and not have to worry about
accidentally killing X because I just exited the controlling
terminal - which happens rarely, but enough to be annoying.
Cheers, Tim.
--
The code that never executes at all is the fastest.
Reply to: