0

I created an executable .desktop file in my Desktop which should launch a GUI application along with displaying an icon in dock, but in Ubuntu 17.10 icon is not displaying in dock:

desktop with download dialog

In previous Ubuntu versions (14.04 to 17.04) I didn't face this issue.

In Ubuntu 17.10 no 3rd party applications with icons as executables are being launched by default, It's asking for trust and launch to proceed.

untrusted application dialog

How can I give the launchers default execute permission, or whatever permission is needed to avoid getting this dialog?

The executable was created by compiling in Ubuntu 14.04 to support backward compatibility.

The .desktop file created to display the icon contains:

#!/usr/bin/env/ xdg-open 
[Desktop Entry]
Version=1.0
Type=Application
Name=MDM
Comment=MAVLDM
Terminal=false
X-Ubuntu-Gettext-Domain=example-content
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;
StartupNotify=false
OnlyShowIn=GNOME;Unity;
X-Desktop-File-Install-Version=0.20
Path=/home/ravi/Downloads/MDM
Exec=/home/ravi/Downloads/MDM/MAVLDM
Icon=/home/ravi/Downloads/MDM/mavldm.png

Is this changed in Ubuntu 17.10?

pomsky
  • 68,507
  • @pomsky workaround you suggested for that issue is not working for me even in Xorg session – Ravi Teja V Nov 02 '17 at 05:56
  • 1
    Please check two things first: 1. Does the icon file specified in the desktop file (i.e. /home/ravi/Downloads/MDM/mavldm.png) exist? If yes, 2. Click on "Activities" and search for "MDM". Does it show the icon? – pomsky Nov 02 '17 at 07:01
  • Icon file specified is present 2. I clicked on Activities and searched for mavldm.png, i am seeing nothing. Same scenario i repeated in Ubuntu 16.04, i can see the icon in activities
  • – Ravi Teja V Nov 07 '17 at 09:13
  • My use case is not to make it as favorites, after clicking on the executable icon should come in the dock directly launching a GUI application. It's is working in previous Ubuntu versions – Ravi Teja V Nov 07 '17 at 10:44
  • It is having executable permissions. Executable is working fine as expected but only icon is not displaying – Ravi Teja V Nov 07 '17 at 11:06