Originally posted by @nephros in #29
Scenario/User story:
As the developer of an application which stores/creates content (e.g. images), I want to be able to present these images as a separate "Album" in Gallery.
Same for e.g. Videos, Documents.
Solution idea:
Perhaps a new .desktop group or key can be supported. Something like
[X-Sailfish-AppContent]
PictureCollections=MyApplication;MyApplicationFavorites
DocumentCollections=MyApplicationDocuments
...
where the values correspond to directories below the respective XDG directories.
Some component which parses the .desktop file (installer? sailjail? invoker?) could then make this information available to applications related to that content.
For example, this information could be made available:
- as a DConf key (thus available without sailjail involvement)
- or as properties or method call result of some DBus interface (access to which could be controlled though Sailjail permission).
Gallery for Images, Media for Music, and perhaps related components like Picker dialogs.
Gallery could show these locations as separate albums.
Documents could grow the capability to filter or group documents by these hints.
Originally posted by @nephros in #29
Scenario/User story:
As the developer of an application which stores/creates content (e.g. images), I want to be able to present these images as a separate "Album" in Gallery.
Same for e.g. Videos, Documents.
Solution idea:
Perhaps a new .desktop group or key can be supported. Something like
where the values correspond to directories below the respective XDG directories.
Some component which parses the .desktop file (installer? sailjail? invoker?) could then make this information available to applications related to that content.
For example, this information could be made available:
Gallery for Images, Media for Music, and perhaps related components like Picker dialogs.
Gallery could show these locations as separate albums.
Documents could grow the capability to filter or group documents by these hints.