Disk used by different items in Storage panel is shown when all the calculations are done
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-system-settings (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Most items in the storage panel take at most 1 second to calculate disk space used, but currently it can take as much as 2 minutes depending on the disk space used by Ubuntu, because all items wait for 'Used by Ubuntu' to be calculation.
I propose that other items, like Music, Pictures etc, should not wait for 'Used by Ubuntu' to be calculated to show their results. This is causing problems when writing integration tests for the Storage panel.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 3.13.0-18-generic i686
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu1
Architecture: i386
CurrentDesktop: Unity
Date: Tue Apr 8 15:35:37 2014
InstallationDate: Installed on 2014-02-28 (38 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha i386 (20140228)
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)
It looks weird if they come in one by one, because they flash up in a disconcerting way. Also you don't know how to draw the graph's bars until they're all in. "Other" is calculated with reference to "used by Ubuntu" too, so you have to wait for them as a pair instead of just the one.
So, it was a deliberate decision to do it like this. I'm going to Won't Fix this bug, but feel free to try and get design to overrule me.
For the tests, I think you should set up a fake home directory and set the XDG directories and HOME variable to point into that.