
Originally Posted by
deano_ferrari
Well that's what I initially thought, but I'm not clear how LXDE fits into all of this... happy to be educated.
LXDE is a DE only. It doesn't "include" a window manager. It uses openbox by default, but could use another one.
openbox is a wm only. It doesn't have a desktop (taksbar, etc), but has some application menus (usually processed on the fly).
openbox can be use as a standalone session (openbox-session) without LXDE or any other desktop. The last command it executes is:
Code:
# Run Openbox, and have it run the autostart stuff
exec /usr/bin/openbox --startup "/usr/lib/openbox-autostart OPENBOX" "$@"
The script /usr/lib/openbox-autostart shows how it handles autostart stuff. Here's this script:
Code:
# cat /usr/lib/openbox-autostart
#!/bin/sh
# Set a background color
BG=""
if which hsetroot &>/dev/null; then
BG=hsetroot
elif which esetroot &>/dev/null; then
BG=esetroot
elif which xsetroot &>/dev/null; then
BG=xsetroot
fi
test -z $BG || $BG -solid "#303030"
GLOBALAUTOSTART="/etc/xdg/openbox/autostart"
AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart"
# Run the global openbox autostart script
if test -f $GLOBALAUTOSTART; then
sh $GLOBALAUTOSTART
elif test -f $GLOBALAUTOSTART.sh; then
sh $GLOBALAUTOSTART.sh
fi
# Run the user openbox autostart script
if test -f $AUTOSTART; then
sh $AUTOSTART
elif test -f $AUTOSTART.sh; then
sh $AUTOSTART.sh
fi
# Run the XDG autostart stuff. These are found in /etc/xdg/autostart and
# in $HOME/.config/autostart. This requires PyXDG to be installed.
# See openbox-xdg-autostart --help for more details.
/usr/lib/openbox-xdg-autostart "$@"
It should become obvious that the user autostart script is executed, whether you are on a freedesktop compliant desktop, in which case XDG_CONFIG_HOME is set, or not, since HOME is set anyway.
I don't see why it doesn't work for the OP.
Bookmarks