← Back to team overview

touch-packages team mailing list archive

[Bug 1384286] Re: add directory allowing scopes and apps to share data

 

The cache (~/.cache/) directory is not equivalent to the data directory (~/.local/share/), because it's meant for volatile data which could be deleted at any time, and which can be recreated later. So, you wouldn't use it for storing user-generated content such as drawings or documents, because they could get lost.
On the other hand, I like the suggestion of sharing the cache directory as well, because that could be used for image thumbnails, which could be shared between an app and a scope.

It may also be that the application and the scope want to share some
configuration values, so I'd suggest sharing the config directory as
well. :-)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor-easyprof-ubuntu
in Ubuntu.
https://bugs.launchpad.net/bugs/1384286

Title:
  add directory allowing scopes and apps to share data

Status in “apparmor-easyprof-ubuntu” package in Ubuntu:
  Confirmed

Bug description:
  Summary says it all, just need to decide on the directory. I propose using this rule:
    # Allow scopes to share data with the app shipped in the same click
    owner @{HOME}/.local/share/@{APP_PKGNAME}/            rw,
    owner @{HOME}/.local/share/@{APP_PKGNAME}/**          mrwkl,

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/1384286/+subscriptions


References