← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1197051] Re: SDK applications should not use ~/.local/share/Qt Project for sqlite files

 

** Changed in: ubuntu-ui-toolkit
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1197051

Title:
  SDK applications should not use ~/.local/share/Qt Project for sqlite
  files

Status in Ubuntu UI Toolkit:
  Fix Released
Status in “apparmor-easyprof-ubuntu” package in Ubuntu:
  Triaged
Status in “qtdeclarative-opensource-src” package in Ubuntu:
  New
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Fix Released
Status in “apparmor-easyprof-ubuntu” source package in Saucy:
  Triaged
Status in “qtdeclarative-opensource-src” source package in Saucy:
  New
Status in “ubuntu-ui-toolkit” source package in Saucy:
  Fix Released

Bug description:
  Ubuntu SDK applications store their sqlite data in locations like this:
  ~/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/7dbf3433d69b4304a43526d9eca5b650.ini
  ~/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/7dbf3433d69b4304a43526d9eca5b650.sqlite

  This results in AppArmor rules like the following:
  owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/" rw,
  owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/" rw,
  owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/" rw,
  owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/" rw,
  owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/[0-9a-f]*.ini{,.*}" rwk,
  owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/[0-9a-f]*.sqlite" rwk,

  But these rules are too lenient and these paths need to be made
  application specific. Specifically: $XDG_DATA_HOME/<app pkgname> where
  '<app pkgname>' is the "name" field in the Click manifest (see bug
  #1197037 for details).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1197051/+subscriptions