Lxde
De Linuxmemo.
(Page créée avec « Catégorie:Logiciel === Autostart === Add a .desktop file to your ~/.config/autostart directory (create one if not available) with 3 lines saying : [Desktop Entry] ... »)
Modification suivante →
Version du 1 mai 2012 à 19:37
Autostart
Add a .desktop file to your ~/.config/autostart directory (create one if not available) with 3 lines saying :
[Desktop Entry] Type=Application Exec=wicd-client -n
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:
~/.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.