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.
Well, everywhere we look at .desktop files (BAMF, and unity app scope) we look for files that are available in each XDG_DATA_ DIR/application s 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.