mindlord
Notices Two Things
Accoring the the Archlinux tips and tricks wiki:
Seems to me full session management on a Pandora is kinda useless anyways.
Also:
Fountain of knowledge that article.
LXsession Full
There are some bugs in lxsession related to session management. lxsession-lite is a version of lxsession which does not have the session management capability. The stability of lxsession-lite is better than lxsession, however it can not save and restore sessions. Thus it is recommended to use lxsession-lite till the problems in lxsession are fixed.
Seems to me full session management on a Pandora is kinda useless anyways.
Also:
Application Menu Editing
The application menu works by resolving the .desktop files located in /usr/share/applications. Many desktop environments run programs that supersede these settings to allow customization of the menu. LXDE has yet to create an application menu editor but you can manually build them yourself if you are so inclined.
To add or edit a menu item, create or link to the .desktop file in /usr/share/applications. Consult the desktop entry specification on freedesktop.org for structures of .desktop files.
To remove items from the menu, instead of deleting the .desktop files, you can edit the file and add the following line in the file:
NoDisplay=true.
To expedite the process for a good number of files you can put it in a loop. For example:
cd /usr/share/applications
for i in program1.desktop program2.desktop ...; do cp /usr/share/applications/$i \
/home/user/.local/share/applications/; echo "NoDisplay=true" >> \
/home/user/.local/share/applications/$i; done
This will work for all applications except KDE applications. For these, the only way to remove them from the menu is to log into KDE itself and use it's menu editor. For every item that you do not want displayed, check the 'Show only in KDE' option.
Fountain of knowledge that article.
Autostarting xfce4-power-manager works using this method.Autostart Programs
.desktop files
First you can link a program's .desktop in /usr/share/applications/ file to ~/.config/autostart/. For example, to execute lxterminal automatically at startup:
$ ln -s /usr/share/applications/lxterminal.desktop ~/.config/autostart/
Once .desktop files have been added you can manipulate them with the GUI configuration tool lxsession-edit.
autostart file
The second method is to use a ~/.config/lxsession/LXDE/autostart file. This file is not a shell script, but each line represents a command to be executed, if a line begins with a @ symbol, the command following the @ will be automatically re-executed if it crashes. For example, to execute lxterminal and leafpad automatically at startup:
File: ~/.config/lxsession/LXDE/autostart
@lxterminal
@leafpad
Note: The commands do not end with a & symbol.
There is also a global autostart file at /etc/xdg/lxsession/LXDE/autostart. If both files are present, all entries in both files will be executed.