Ubuntu 20.04 LTS, Gnome .desktop files

Hi

Since updating from 18.04 to 20.04, setting .desktop file’s metadata::trusted to true no longer displays the icon specified in .desktop file on desktop.

I now have to right-click on the .desktop file and select “Allow launching” to display the icon specified in .desktop file on desktop.

Is there a bash command that does the same as right-clicking on the .desktop file and selecting “Allow launching” ?

Try this way:

chmod +x file.desktop

No. chmod +x doesn’t allow the desktop icon to launch app.

I’m using the following commands.

cp MyApp.desktop ~/Desktop
chmod 755 ~/Desktop/MyApp.desktop
gvfs-set-attribute ~/Desktop/MyApp.desktop “metadata::trusted” yes
gio set ~/Desktop/MyApp.desktop “metadata::trusted” yes
touch ~/Desktop/MyApp.desktop

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.