(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.....