if you wanna autostart services that start before the desktop (non-grafical like mounting stuff) you can put them here:

Autostart files in an LXDE desktop and/or Openbox can be located in at least 5 places, depending upon the distro. These are


The first three are text files that are edited by adding text according to some format, and the last two are directories containing .desktop files for the processes that are to be started. If the lxde-core desktop is installed, then the lxde-autostart usually takes precedence in the command order. In an openbox-only distribution with no session-manager, generally ~/.config/autostart.sh rules. The two autostart files in the user’s home directory (~/) only apply to that user; the 3 in the etc directory apply to all users.

vim /etc/rc.local; # global-system-wide on every debian BEFORE DESKTOP
vim /etc/xdg/lxsession/LXDE/autostart; # for programs that start AFTER DESKTOP (LXDE) has started "autostart"
sudo vim ~/.config/lxsession/LXDE/autostart

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@lxterminal -e /scripts/SetScreen.sh

i don’t know which one worked… but it worked after:

echo "@lxterminal -e /scripts/welcome.sh" >> /etc/xdg/lxsession/LXDE/autostart;
echo "@lxterminal -e /scripts/welcome.sh" >> /etc/xdg/openbox/autostart;
echo "@lxterminal -e /scripts/welcome.sh" >> ~/.config/openbox/autostart.sh;
echo "@lxterminal -e /scripts/welcome.sh" >> ~/.config/autostart;
echo "@lxterminal -e /scripts/welcome.sh" >> /etc/xdg/autostart;