View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#19
Ha! I don't have my tablet right here for testing (although I can ssh in), but I think I found what the OP was looking for:

Try this file:

/etc/xdg/lxsession/LXDE/autostart

It's a bit scary, since this file seems to control everything that starts when LXDE starts... My one looks like this:
Code:
@lxde-settings
@xscreensaver -no-splash
@lxpanel --profile LXDE
@pcmanfm -d
so I guess you can delete xscreensaver and add xmodmap...

Some important information I found from this unlikely source:

List other applications you want to launch, one command per line. Note that there is no '&' at the end of every line since this is not a shell script. Don't append & at the end of any line. Since this is not a shell script, shell expansion like ~ or $HOME won't work. If you need this, write a script and do the shell things there, than list the script here in the autostart file.

If a line starts with @, the program will be guarded by lxsession. That means: If the program crashes, it should be automatically restarted. If the program is terminated normally, or is terminated because it receives SIGTERM or SIGKILL, then the reload won't happen.
The same page also suggests something else interesting:

Another way to start programs on session startup is to add their *.desktop
files in ~/.config/autostart. Please refer to the Autostart spec.
Another site suggests that the file name in your home directory to use for autostarting is ~/.config/lxsession/LXDE/default

EDIT: I can confirm
that anything put into
/etc/xdg/lxsession/LXDE/autostart and the .desktop files in /home/user/.config/autostart do start up. Nothing in the "default" file works, not ~/.config/lxsession/LXDE/default nor /etc/xdg/lxsession/LXDE/default.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-09-12 at 16:25. Reason: more info
 

The Following 3 Users Say Thank You to qole For This Useful Post: