Linux Mastering Development

Autostarting a python GUI application on startup as local user (beagle bone black)

I am trying to start a GUI application (python3 project) on application startup.
I’ve created a script in /etc/xdg/autostart/.

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
export DISPLAY=:0
@/usr/bin/python3 ~/path/to/the/

I’ve also tried the following script in /home/debian/.config/autostart/fileName

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
export DISPLAY=:0
@lxterminal -e /usr/bin/python3 ~/path/to/the/

Something to note is that some of the libraries used are only available in “debian” login. Hence, I need to run this script as “debian”.

Any suggestions on how to improve this? Currently, on startup nothing happens. I tried putting a touch command before the export command to see if the file is even invoked, I didnt see any file generated either.

Leave a Reply

Your email address will not be published. Required fields are marked *