On Raspberry Pi, Autostart of executable does not show the correct icon and path
Posted: Sat Jan 30, 2021 3:23 pm
I have an executable file that are generated from a python program by using auto-py-to-exe, a gui front for pyinstaller, and a .ico file for a 64x64 icon, both placed in /home/pi/TestAS/Program. The program uses the path to store some persistent data.
Both in /home/pi/.config/autostart and in /home/pi/Desktop I have placed a file named TestAS.desktop with the content:
[Desktop Entry]
Comment=Testing Auto Start
Exec=/home/pi/TestAS/Program/TestAS
Icon=/home/pi/TestAS/Program/TestAS.ico
Path=/home/pi/TestAS/Program
Terminal=false
Encoding=UTF-8
Type=Application
Categories=None;
Name[en_US]=TestAS
When I reboot the Pi, it starts the program, but it does not show the correct icon in the task bar (it shows the anonymous icon instead) and it places the persistent data out in /home/pi.
When I start the program by double clicking the icon on the desktop, it shows the correct icon in the task bar and places the persistent data in the correct directory.
Are there any of you good people who have ideas to get autostart to behave properly?
Both in /home/pi/.config/autostart and in /home/pi/Desktop I have placed a file named TestAS.desktop with the content:
[Desktop Entry]
Comment=Testing Auto Start
Exec=/home/pi/TestAS/Program/TestAS
Icon=/home/pi/TestAS/Program/TestAS.ico
Path=/home/pi/TestAS/Program
Terminal=false
Encoding=UTF-8
Type=Application
Categories=None;
Name[en_US]=TestAS
When I reboot the Pi, it starts the program, but it does not show the correct icon in the task bar (it shows the anonymous icon instead) and it places the persistent data out in /home/pi.
When I start the program by double clicking the icon on the desktop, it shows the correct icon in the task bar and places the persistent data in the correct directory.
Are there any of you good people who have ideas to get autostart to behave properly?