PDA

View Full Version : [SOLVED] Problems With .desktop files



mrkeef
April 27th, 2020, 04:58 AM
I am having problems with getting some applications to appear on my "Favourites" launcher. Neither of the applications below will appear as a launcher.

This one was automatically generated by the software and appears in /usr/share/applications


[Desktop Entry]
Type=Application
Name=Moneydance
Exec=/bin/sh "/opt/Moneydance/Moneydance"
Icon=/opt/Moneydance/.install4j/Moneydance.png

This one I made myself and appears in ~/.locla/share/applications


[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Weather
Comment= Weather
Exec=lowriter /home/keith/database/Weather/Weather_Form.odt
Icon=/usr/share/icons/Yaru/48x48@2x/apps/org.gnome.Weather.png
Terminal=false

Can someone please tell me why gnome refuses to put these on the Favourites?
I am using Ubuntu 20.04

DuckHook
April 27th, 2020, 05:40 AM
Please post your output between
and tags for clarity. Or highlight the output and use the http://ubuntuforums.org/images/editor/code.gif button in the *Adv Reply* toolbar.

There are many reasons why .desktop files don't work, but the most common reason is not setting the execution bit:


The one in /usr/share/applications must be owned by root with at least 755 permissions.
The one in ~/.local/share/applications (I assume your stated path was just a typo) should be owned by you, also with 755 permissions.

After they show up in the apps launcher <Super> + <a>, right click on the icon and "Add to Favourites"

mrkeef
April 28th, 2020, 01:00 AM
Thank you! Works as you stated!

DuckHook
April 28th, 2020, 01:30 AM
Glad it's solved. Would that they were all this easy…

Good Luck and Happy Ubuntu-ing!