Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.Desktop problems
#1
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

[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=true
Exec/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....
Reply


Messages In This Thread
.Desktop problems - by mepyyeti - Jan-25-2018, 08:35 PM
RE: .Desktop problems - by league55 - Jan-25-2018, 08:44 PM
RE: .Desktop problems - by mepyyeti - Jan-25-2018, 09:34 PM
RE: .Desktop problems - by metulburr - Jan-25-2018, 10:01 PM
RE: .Desktop problems - by mepyyeti - Jan-25-2018, 10:12 PM
RE: .Desktop problems - by metulburr - Jan-25-2018, 10:28 PM
RE: .Desktop problems - by Gribouillis - Jan-25-2018, 10:52 PM
RE: .Desktop problems - by mepyyeti - Jan-26-2018, 12:30 AM
RE: .Desktop problems - by league55 - Jan-26-2018, 01:07 AM
RE: .Desktop problems - by Gribouillis - Jan-26-2018, 07:16 AM
RE: .Desktop problems - by mepyyeti - Jan-27-2018, 08:11 AM
RE: .Desktop problems - by wavic - Jan-26-2018, 09:10 AM
RE: .Desktop problems - by Gribouillis - Jan-27-2018, 09:42 AM
RE: .Desktop problems - by mepyyeti - Jan-27-2018, 04:13 PM
RE: .Desktop problems - by Gribouillis - Jan-27-2018, 05:30 PM
RE: .Desktop problems - by metulburr - Jan-27-2018, 07:18 PM
RE: .Desktop problems - by mepyyeti - Jan-27-2018, 09:07 PM
RE: .Desktop problems - by Gribouillis - Jan-27-2018, 09:53 PM
RE: .Desktop problems - by wavic - Jan-27-2018, 10:08 PM
RE: .Desktop problems - by mepyyeti - Jan-27-2018, 10:23 PM
RE: .Desktop problems - by wavic - Jan-27-2018, 10:38 PM
RE: .Desktop problems - by metulburr - Jan-28-2018, 06:14 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020