Users need to see at a glance what fills a disk and to remove the largest entries without digging through a file manager. The treemap makes sizes comparable, the scan runs off the UI thread, and removing an entry updates the tree in place instead of rescanning.
24 lines
691 B
C++
24 lines
691 B
C++
#include "ui/main-window.h"
|
|
|
|
#include <QApplication>
|
|
#include <QIcon>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
QApplication::setApplicationName(QStringLiteral("FWS DiskCleaner"));
|
|
QApplication::setApplicationDisplayName(QStringLiteral("FWS DiskCleaner"));
|
|
QApplication::setDesktopFileName(QStringLiteral("fws-diskcleaner"));
|
|
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("fws-diskcleaner")));
|
|
|
|
QString startPath;
|
|
const QStringList arguments = QApplication::arguments();
|
|
if (arguments.size() > 1) {
|
|
startPath = arguments.at(1);
|
|
}
|
|
|
|
MainWindow window(startPath);
|
|
window.show();
|
|
return app.exec();
|
|
}
|