Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4873

Troubleshooting • Re: Cronjob does not run launcher.sh

$
0
0
Thanks Guys,

I finaly got it working.
First it did not work. I had to ad python3 in the "Exec=" line.
This is how it worked:

1. Create the autostart directory:

Code:

mkdir -p /home/pi/.config/autostart
2. Open a new text file in your preferred editor.
3. Add the following three lines:

Code:

[Desktop Entry]Type=ApplicationExec=lxterminal -e python3 /home/pi/dir/test.py
4. Saved this in /home/pi/.config/autostart with the name test.desktop
5. Logout and login or reboot.

Statistics: Posted by Wessiez — Mon Nov 04, 2024 3:48 pm



Viewing all articles
Browse latest Browse all 4873

Trending Articles