I have a python script that works perfectly if I just run:
If I make a
.desktop shortcut, with the above command, the sidebar script is opened (the py file is a GUI) but then it closes and nothing happens.
It is true that the
script.py file takes about 10 seconds to load the GUI, but it does work perfectly, while the shortcut just shows a python script running on the sidebar, then closes.
EDIT: I tried to launch the shortcut in the terminal:
gtk-launch: no such application script.desktop