Tritonio

LXDE Raspbian autostart startup

Sep 24th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. Method 1
  2.  
  3. This method uses a global list of autostart applications that applies to all user accounts. They will load whenever LXDE is loaded regardless of what user is logged in at the time. Usually this user is the default ‘Pi’ account.
  4.  
  5. Use the following command to launch the nano text editor and edit the autostart file :
  6.  
  7. sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
  8.  
  9. Note : The newer Raspbian image changed the folder “LXDE” to “LXDE-pi” so the line above has been updated.
  10.  
  11. After the last line add a line for each application you wish to autorun. For example if I add lines for LXTerminal and Leafpad my file looks like this :
  12.  
  13. @lxpanel --profile LXDE
  14. @pcmanfm --desktop --profile LXDE
  15. @lxterminal
  16. @leafpad
  17. @xscreensaver -no-splash@
  18.  
  19. To save and exit the nano editor press CTRL-X, Y and then ENTER. You can use your preferred text editor if nano isn’t your first choice.
  20. Method 2
  21.  
  22. The alternative method is to create a configuration file that is unique to the currently logged in user. First you need to edit this text file :
  23.  
  24. sudo nano ~/.config/lxsession/LXDE/autostart
  25.  
  26. As in Method 1 this file represents a list of commands to be executed when the GUI loads. It is usually blank when you first edit it so just add the applications you need to auto-load:
  27.  
  28. @lxterminal
  29. @leafpad
  30.  
  31. To save and exit the nano editor press CTRL-X, Y and then ENTER.
Add Comment
Please, Sign In to add comment