Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.Desktop problems
#12
(Jan-26-2018, 07:16 AM)Gribouillis Wrote: Did you change anything to the .desktop file? In this case can you post it here, as an example of a .desktop file that works?

yes. I added a python3 shebang...actually I want to pm one of the admins to possibly set up a step-by-step guide to creating icon executable apps (and maybe desktop/mobile downloadble apps). I think it would be very instructional and there's nothing on SO or on YT (that I found at least...)

Quote:#!/usr/bin/env python3
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=testApp
Comment=SimiApp
Exec=/usr/share/applications/simi1.py
Icon=/usr/share/icons/hicolor/36x36/apps/gw36.png
Terminal=true



However I wrote up a new script and ran into a similar problem. I've attached the entire terminal sequence. I am sure I am screwing up on something very simple. I just can't catch it. Everything seems right. But I do get an error stating 'untrusted launch' and the icon won't appear. But everything is correct in the .desktop. THe following is the terminal sequence:

Quote:me@me-ubuntu:~$ ls -lsh Documents/py/cs/fishgm1.py Documents/py/cs/fishgm1.desktop Pictures/gonefishin36.png
4.0K -rwxr-xr-x 1 me me 210 Jan 27 02:04 Documents/py/cs/fishgm1.desktop
4.0K -rwxr-xr-x 1 me me 3.2K Jan 27 02:05 Documents/py/cs/fishgm1.py
12K -rw-r--r-- 1 me me 12K Jan 27 01:30 Pictures/gonefishin36.png
Clearly all files exist under user me with executable permissions across the board.

Next, I enter as root and cp everything where it should be:
Quote:me@me-ubuntu:~$ sudo -i
[sudo] password for me:
root@me-ubuntu:~# cp /home/me/Documents/py/cs/fishgm1.py /usr/share/applications/
root@me-ubuntu:~# cp /home/me/Documents/py/cs/fishgm1.desktop /usr/share/applications/
root@me-ubuntu:~# cp /home/me/Pictures/gonefishin36.png /usr/share/icons/hicolor/36x36/apps/
root@me-ubuntu:~# cp /home/me/Documents/py/cs/fishgm1.desktop /home/me/Desktop

then I cat the desktop files, but I see everything is right...
Quote:root@me-ubuntu:~# cat /home/me/Desktop/fishgm1.desktop
#!/usr/bin/env python3
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Fishin
Comment=fishin
Exec=/usr/share/applications/fishgm1.py
Icon=/usr/share/icons/hicolor/36x36/apps/gonefishin36.png
Terminal=true
root@me-ubuntu:~# cat /usr/share/applications/fishgm1.desktop
#!/usr/bin/env python3
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Fishin
Comment=fishin
Exec=/usr/share/applications/fishgm1.py
Icon=/usr/share/icons/hicolor/36x36/apps/gonefishin36.png
Terminal=true

Where am I going wrong...my previous executable runs without a hitch.....
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