Disk used by different items in Storage panel is shown when all the calculations are done

Bug #1304328 reported by Omer Akram
6
This bug affects 1 person
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-system-settings 0.1+14.04.20140402-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-18.38-generic 3.13.6
Uname: Linux 3.13.0-18-generic i686
NonfreeKernelModules: wl
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-system-settings
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Omer Akram (om26er) wrote :
Revision history for this message
Iain Lane (laney) wrote :

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.

Changed in ubuntu-system-settings (Ubuntu):
status: New → Won't Fix
Revision history for this message
Omer Akram (om26er) wrote :

>> 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.

That will not work because even if I fake the directories, the app will still calculate space 'used by Ubuntu'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.