← Back to team overview

touch-packages team mailing list archive

[Bug 1454444] Re: Storage view does not count correctly space used by app

 

Comment from https://code.launchpad.net/~ken-vandine/ubuntu-system-
settings/lp1524424/+merge/280196

"How do applications know where to save data to? They write to a well
known directory under XDG_{CACHE,CONFIG,DATA}_HOME, so use that. Count
the logs and other stuff (if that actually does happen) as in use by the
system if it's too hard to do it any other way.

From
https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement:

  Applications will always have read access to their install directory
  and have write access to directories they own as determined by the XDG
  base directory specification. Specifically:
  XDG_CACHE_HOME/<APP_PKGNAME>, XDG_RUNTIME_DIR/<APP_PKGNAME>,
  XDG_RUNTIME_DIR/confined/<APP_PKGNAME> (for TMPDIR),
  XDG_DATA_HOME/<APP_PKGNAME> and XDG_CONFIG_HOME/<APP_PKGNAME>. Apps
  can discover these paths using standard APIs and appending the package
  name as defined by the 'name' field of the manifest."

** Changed in: ubuntu-system-settings (Ubuntu)
       Status: Incomplete => Confirmed

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

Title:
  Storage view does not count correctly space used by app

Status in Canonical System Image:
  Confirmed
Status in click package in Ubuntu:
  Confirmed
Status in ubuntu-system-settings package in Ubuntu:
  Confirmed

Bug description:
  When going to Settings->About phone -> Storage
  Storage used per app count does not include space used by app in ~/.local/<app>/
  This makes is hard to determine which app is actually eating all the storage.
  It also makes whole list kinda pointless, since we can have easily app easting 1G or more  and never see it in the lis.
  Apps like podcast, browser, twitter can easily eat hundreds of MB without being spotted in the list.

  Expected result:
  space occupied by all is calculated from the size of application itself, plus data used by application under ~/.local/<app>/

  tested on RTM krillin (stable/bq-aquaris.en/krillin) v22

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1454444/+subscriptions