Add Disk Quota Plasmoid

Review Request #124589 - Created Aug. 2, 2015 and submitted

Dominik Haumann
broulik, sebas

The disk quota is usually used in enterprise installations where network shares are mounted locally. Typically, sysadmins want to avoid that users copy lots of data into their folders, and therefor set quotas (the quota limit has nothing to do with the physical size of a partition). Typically, once a user gets over the hard limit of the quota, the account is blocked and the user cannot login anymore. This happens from time to time, since the users are not really aware of the current quota limit and the already used disk space.

Here is where the "Disk Quota" plasmoid helps: It continusouly monitors the disk quota and warns the quota apprpriately.

A detailed description including screenshots can be found in this blog:

(I had a KDE4 hack of this plasmoid running at university, and it proved very usable over the years, so it is probably a good idea to have it by default in plasma)

- the panel icon is larger than the others (some wrong margin?)
- an icon for the metadata.desktop is missing (the shipped quota.svg file is not available here, it seems).
- the grid units probably need some more tuning

Tested combinations:
- no quota installed: A nice message is displayed telling the user that 'quota' is missing.
- quota installed, but no quota restrictions set: The applet says "No quota restrictions found"
- quota installed, quotas active: The applet continuously shows the data. The quota entries are in a QAbstractItemModel derived class, so inserting/removing quotas all works (tested).
- filelight installed: the item under mouse gets highlighted. If clicked, filelight starts with the correct location.


  • 2
  • 19
  • 2
  • 23
Description From Last Updated
You should search for quota and filelight programs during startup only. You can send a notification if they are not ... Lamarque Souza Lamarque Souza
QProcess::kill() may need some time to really kill the process. In this case using QProcess::waitForFinished(2000 / 2s timeout /) may ... Lamarque Souza Lamarque Souza
Lamarque Souza
Kai Uwe Broulik
Kai Uwe Broulik
David Edmundson
Jens Reuterberg
Lamarque Souza
David Edmundson
Dominik Haumann
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 7649200669efa8d01d8b1ec7c8c7fbeda633da87 by Marco Martin to branch master.