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:2. Open a new text file in your preferred editor.
3. Add the following three lines:4. Saved this in /home/pi/.config/autostart with the name test.desktop
5. Logout and login or reboot.
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
3. Add the following three lines:
Code:
[Desktop Entry]Type=ApplicationExec=lxterminal -e python3 /home/pi/dir/test.py
5. Logout and login or reboot.
Statistics: Posted by Wessiez — Mon Nov 04, 2024 3:48 pm