desktop applications not being found in .local

Bug #1756684 reported by Chris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu MATE
Invalid
Undecided
Unassigned

Bug Description

Ubuntu MATE 17.10.1
I have written some .desktop files and placed them in ~/.local/share/applications

The $XDG_DATA_DIRS variable is not looking here, so my apps dont show up in the MATE menu:
/usr/share/mate:/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop

.local was included in Ubuntu Gnome and in other distros - this should be fixed in MATE, by adding $HOME/.local/share to the environment variable when it gets defined.

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

I can't reproduce this issue. I have .desktop files in ~/.local/share/applications and they are presented in the menus correctly.

Changed in ubuntu-mate:
status: New → Incomplete
Revision history for this message
Chris (chrisonbuntu) wrote :

Hi Martin,

thanks for looking at this. when i run "sudo update-desktop-database -v" to refresh the database, it reports that:

"Search path is now: [/usr/local/share/applications, /usr/share/applications]"

Does it do the same on your machine?

I am happy to manually add the .local path to $XDG_DATA_DIRS as a workaround, but I dont know where it is defined - any ideas?

thanks
Chris

Revision history for this message
Chris (chrisonbuntu) wrote :

I have done more troubleshooting on this and found that .desktop files only work if they start with the line "#!/usr/bin/env xdg-open"

This isnt the case in Ubuntu Gnome and also in Peppermint.

Changed in ubuntu-mate:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.