Re: [rox-users] ROX-Session-0.4.0 Is Senile
Mark Williams <[email protected]>
| Newsgroups | gmane.comp.desktop.rox.devel |
|---|---|
| Message-ID | <[email protected]> |
Tony Houghton wrote: > In <[email protected]> > Mark Williams <[email protected]> wrote: > >> I think it's not overriding the old ROX-Session. I've tried to set >> it up both as a general login and a single user login, but each time >> it forgets. It seems I need to remove the old ROX-Session and its >> configuration files first. > > Not its configuration files; it's the session start script you need to > replace. For a general login it's /usr/local/sbin/rox-session and for a > single user it's ~/.xsession which is symlinked to ~/.xinitrc. > Okay, I checked out the rox-session script in /usr/local/sbin and it's v.0.40.0. I've attached both versions so you can see that's the case. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ rox-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rox-devel
.xsession
(text/plain, 1.4 KB)
#!/bin/sh
# This file was created by ROX-Session.
if [ -d ${HOME}/bin ] && echo $PATH | grep -qv ${HOME}/bin ; then
PATH="${HOME}/bin:${PATH}"
fi
# Step 1: Try to run ROX-Session. If it works, stop right here.
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] ; then
DBUS_LAUNCH="dbus-launch --exit-with-session"
else
DBUS_LAUNCH=
fi
if [ -x "`which 0launch`" ]; then
exec $DBUS_LAUNCH 0launch http://rox.sourceforge.net/2005/interfaces/ROX-Session -w
fi
if [ -x "/usr/share/rox-desktop/Apps/rox-session-0.40.0/AppRun" ]; then
exec $DBUS_LAUNCH "/usr/share/rox-desktop/Apps/rox-session-0.40.0/AppRun" -w
fi
# Step 2: It didn't work. Try to provide a failsafe login so the user
# can fix things.
# Load a window manager. Keep trying until we find one that works!
for wm in openbox xfwm4 sawfish enlightenment wmaker icewm blackbox fluxbox \
metacity kwin kwm fvwm2 fvwm 4Dwm twm; do
if [ -x "`which $wm`" ]; then break; fi;
done
"$wm" &
xmessage -file - << END
.xsession: failed to run /usr/share/rox-desktop/Apps/rox-session-0.40.0/AppRun - maybe you moved or deleted it?
I'll try to give you an xterm and a filer window instead - try to find
and run ROX-Session to fix the problem. Close the xterm to logout.
If all else fails, delete your .xsession and .xinitrc files to get the
system defaults.
Report any problems to:
http://rox.sourceforge.net/phpwiki/index.php/MailingLists
Good luck!
END
rox &
exec xterm
rox-session
(text/plain, 1.3 KB)
#!/bin/sh
# This file was created by ROX-Session.
if [ -d ${HOME}/bin ] && echo $PATH | grep -qv ${HOME}/bin ; then
PATH="${HOME}/bin:${PATH}"
fi
# Step 1: Try to run ROX-Session. If it works, stop right here.
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] ; then
DBUS_LAUNCH="dbus-launch --exit-with-session"
else
DBUS_LAUNCH=
fi
if [ -x "`which 0launch`" ]; then
exec $DBUS_LAUNCH 0launch http://rox.sourceforge.net/2005/interfaces/ROX-Session -w
fi
if [ -x "/home/mark/rox-session-0.40.0/AppRun" ]; then
exec $DBUS_LAUNCH "/home/mark/rox-session-0.40.0/AppRun" -w
fi
# Step 2: It didn't work. Try to provide a failsafe login so the user
# can fix things.
# Load a window manager. Keep trying until we find one that works!
for wm in openbox xfwm4 sawfish enlightenment wmaker icewm blackbox fluxbox \
metacity kwin kwm fvwm2 fvwm 4Dwm twm; do
if [ -x "`which $wm`" ]; then break; fi;
done
"$wm" &
xmessage -file - << END
.xsession: failed to run /home/mark/rox-session-0.40.0/AppRun - maybe you moved or deleted it?
I'll try to give you an xterm and a filer window instead - try to find
and run ROX-Session to fix the problem. Close the xterm to logout.
If all else fails, delete your .xsession and .xinitrc files to get the
system defaults.
Report any problems to:
http://rox.sourceforge.net/phpwiki/index.php/MailingLists
Good luck!
END
rox &
exec xterm