desktop files added from subdirectory don't persist in launcher

Bug #1033577 reported by icb410 on 2012-08-06
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unity (Ubuntu)

Bug Description

Wine creates .desktop files in a subdirectory of ~/.local/share/applications/. ie:

~/.local/share/applications/wine/Programs/Microsoft Office/Microsoft Office Word 2007.desktop

When added to the launcher, they appear fine but disappear after logging out and back in.

Doing gsettings get com.canonical.Unity.Launcher favorites gives:

['nautilus-home.desktop', .... , 'wine-Programs-Microsoft Office-Microsoft Office Word 2007.desktop']

Note that the '/' has been converted to '-'

setting gsettings to:

['nautilus-home.desktop', .... , 'wine/Programs/Microsoft Office/Microsoft Office Word 2007.desktop']

Allows the launcher to persist in the launcher favorites bar.

This bug should be corrected so that the '/' is not converted to '-'

Bilal Akhtar (bilalakhtar) wrote :

Highly related to bug #704187 though not a duplicate.

Changed in unity:
status: New → Confirmed
importance: Undecided → Low
icb410 (ian-berke) wrote :

This isn't a wine issue. It's a subdirectory thing. It seems that if you put a .desktop file > 1 subdirectory down, it won't work. I tested this with chromium.desktop.

Placing it in ~/.local/share/applications/test/ creates an entry in gsettings "test-chromium.desktop" and it persists when I log out/in.

Placing it in ~/.local/share/applications/test/test2/ creates an entry in gsettings "test-test2-chomrium.desktop" and it no longer persists.

If I make the entry with "/" instead of "-" it persists no matter what.

Andrea Azzarone (azzar1) wrote :

Seems fixed in Ubuntu 14.04. Please reopen the bug if not.

Changed in unity:
status: Confirmed → Invalid
Changed in unity (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers