Page 1 of 1

How do I run a bash script with LXSession at boot?

Posted: Mon Apr 28, 2014 1:22 pm
by LambdaFox
I have a newly installed Lubuntu 14.04.

When I click on Preferences - Default applications for LXSEssion, I get a gonfiguration window.

I click on the autostart tab and added a manual autostarted application and enterred:

/home/randy/.config/connectr.sh

I have also tried making it this:

/bin/bash /home/randy/.config/connectr.sh

Re: How do I run a bash script with LXSession at boot?

Posted: Fri May 02, 2014 6:13 am
by drooly
so where is the problem?
is the script connectr.sh executable?

Re: How do I run a bash script with LXSession at boot?

Posted: Mon Aug 11, 2014 3:46 pm
by thefrayedend
Isnt the proper way of doing this to make a .desktop shortcut pointing to the script you wish to run and place the .desktop shortcut in one of two locations depending on if you want it to run for just one user or all users

place the .desktop shortcut in "~/.config/autostart/" for just a single user
place the .desktop shortcut in "/etc/xdg/autostart/" for all users