Please support /var/lib/snappy/desktop as an additional desktop directory

Bug #1554563 reported by Michael Vogt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Snappy installs desktop files that come from a snap into /var/lib/snappy/desktop/. It would be great if unity could be updated to look into this directory for additional desktop files.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I'd suggest desktop files to be installed in /var/lib/snappy/desktop/applications, while /var/lib/snappy/desktop is added to XDG_DATA_DIRS.

This will make unity/bamf to see these .desktop files... The matching of those, might be a different chapter.

Michael Vogt (mvo)
Changed in unity (Ubuntu):
milestone: none → ubuntu-16.04
Revision history for this message
Michael Vogt (mvo) wrote :

Will this make your life significantly easier? I don't mind, I am happy to change our code to use this new install location but only if there is value for you. In my ignorance I thought it would be an arbitrary dir you just define in the unity7.menu file.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Well, everywhere we look at .desktop files (BAMF, and unity app scope) we look for files that are available in each XDG_DATA_DIR/applications as it's the standard place for .desktop files.

So I think that it would be the best thing to do. This would mean that all we need is to have /var/lib/snappy/desktop/ as datadir or maybe /var/lib/snappy/desktop/{share,data,...}.

By just doing that, BAMF and app lens should be able to pick .desktop files. Matching them is a different job though.

Michael Vogt (mvo)
affects: unity (Ubuntu) → snappy (Ubuntu)
Revision history for this message
Michael Vogt (mvo) wrote :

I commited a branch that changes the xdg directory and adds its own /etc/X11/Xsession.d snippet. It appears this is all that is needed and I can close the unity task(?).

Changed in snappy (Ubuntu):
status: New → Fix Committed
Changed in unity (Ubuntu):
status: New → Invalid
Mathew Hodson (mhodson)
no longer affects: unity (Ubuntu)
Changed in snappy (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

snappy (from Debian) is a fast compression/decompression library https://github.com/google/snappy

affects: snappy (Ubuntu) → snapd (Ubuntu)
Changed in snapd (Ubuntu):
status: Fix Committed → Fix Released
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.