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

All questions and problems regarding LXDE components including LXSession, LXAppearance, GPicView, Leafpad, LXTerminal, Xarchiver, LXNM to be discussed here.

For PCManFM questions, please ask in the dedicated forum below.
Locked
LambdaFox
Posts: 14
Joined: Mon Apr 28, 2014 1:08 pm

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

Post 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
Linux noobie -Tech Oldie - Migrating from Years w XP + Classic Desktop to Lubuntu 14.04
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

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

Post by drooly »

so where is the problem?
is the script connectr.sh executable?
thefrayedend
Posts: 2
Joined: Sun Aug 10, 2014 6:31 pm

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

Post 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
Locked