Regarding RUNNING a .py through a desktop icon. .Desktop is the Linux version of an .exe . I wasn't able to find a solution to this (tried stackexchange and FreeDesktop.org). So hopefully other users benefit from this. I couldn't find a similar issue so maybe this is helpful.
I have a working .py and want to put it on the desktop w/ its own icon and be able to run it by clicking the icon. I set up the .desktop file
[inline]
me@me-ubuntu:~$ cd /
me@me-ubuntu:/$ sudo -i
[sudo] password for me:
root@me-ubuntu:~# mv /home/me/Documents/py/cs/test0.desktop /usr/share/applications/
root@me-ubuntu:~# cp /usr/share/applications/test0.desktop /home/me/Desktop
root@me-ubuntu:~# exit
logout
[/inline]
There is a generic icon on the desktop now w/ tiny lock on it. Double clicking the icon prompts 'untrusted to launch'.
I ran ls -lsh on my desktop
[inline]
4.0K -rwxrwxr-x 1 me me 182 Jan 25 15:17 test1.desktop
[/inline]
closest thing I found regard 'untrusted to launch' in Ubuntu 17.10 is here:launchpad untrusted to launch bug in 17.10
However this bug has been fixed
So, the problem:
1) File will not run 'there was an error launching the application'. PLEASE HELP
Where did I go wrong? I can ls into the directories and the files **ARE** there....very frustrated....
I have a working .py and want to put it on the desktop w/ its own icon and be able to run it by clicking the icon. I set up the .desktop file
[Desktop Entry] Type=Application Encoding=UTF-8 Name=SomeApp Comment=SimiApp Exec=/usr/share/applications/simi0op.py Icon=/usr/share/icons/hicolor/48x48/apps/gw48.png Terminal=trueExec/Icon all are placed **correctly** Meaning simi0op.py is in the directory Exec points to. Same thing for my icon file, gw48.png.
[inline]
me@me-ubuntu:~$ cd /
me@me-ubuntu:/$ sudo -i
[sudo] password for me:
root@me-ubuntu:~# mv /home/me/Documents/py/cs/test0.desktop /usr/share/applications/
root@me-ubuntu:~# cp /usr/share/applications/test0.desktop /home/me/Desktop
root@me-ubuntu:~# exit
logout
[/inline]
There is a generic icon on the desktop now w/ tiny lock on it. Double clicking the icon prompts 'untrusted to launch'.
I ran ls -lsh on my desktop
[inline]
4.0K -rwxrwxr-x 1 me me 182 Jan 25 15:17 test1.desktop
[/inline]
closest thing I found regard 'untrusted to launch' in Ubuntu 17.10 is here:launchpad untrusted to launch bug in 17.10
However this bug has been fixed
So, the problem:
1) File will not run 'there was an error launching the application'. PLEASE HELP
Where did I go wrong? I can ls into the directories and the files **ARE** there....very frustrated....