The root of this bug is that snaps have home set to
HOME=/home/user/snap/$SNAP_NAME/$REVISION and that Music, Pictures,
Videos, etc do not exist in /home/user/snap/$SNAP_NAME/$REVISION.
Applications using the home interface can use getpwent() to discover the
home directory of the user.

@Bill, as for your larger question, we discussed this a bit at the
Hague. Please understand that the home interface is a transitional
interface for applications that don't yet understand content-hub, out of
process content selectors, etc. Ubuntu Touch was designed with content-
hub/etc and application data silos and unless the direction has changed,
we should not rely on the current home interface for Ubuntu Personal.

Interface slot implementations (aka, the Touch trusted helpers) like
media-hub, thumbnailer, content-hub, etc, etc can continue to have the
access they require. For now, they can use the home interface (with
getpwent()). In this manner, the slot implementations use the home
interface and the plugging applications do not (they instead continue to
use whatever APIs the trusted helpers offer). This preserves the
application data model, trusted helper design and should unblock you.

At the sprint people wanted to further restrict the home interface for
certain applications (eg, just ~/Music and ~/Videos rather than all of
home for media-hub , etc). How we do that needs a little bit of design,
but I think I would prefer to not introduce more transitional interfaces
for shared directories and instead augment the home interface with an
attribute to declare the subset of home required. Perhaps this would be
in another interface (eg, xdg-user-dirs). This work is not required to
unblock you and can be discussed with the snappy team outside of this
bug.

** Changed in: snapd (Ubuntu)
     Assignee: Jamie Strandboge (jdstrand) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1577471

Title:
  Snap applications cannot access the user's normal XDG directories

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1577471/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to