Revert "Disallow executing KDE Partition Manager as root."

This reverts commit cfa53f6d3c.
This commit is contained in:
Andrius Štikonas 2018-03-22 20:13:58 +00:00
parent cfa53f6d3c
commit d37c0ef9ce
1 changed files with 1 additions and 16 deletions

View File

@ -32,25 +32,10 @@
#include <KMessageBox>
#include <KLocalizedString>
#include "config.h"
#ifndef Q_OS_WIN
#include <unistd.h>
#endif
#include <iostream>
#include <config.h>
int Q_DECL_IMPORT main(int argc, char* argv[])
{
#ifndef Q_OS_WIN
/**
* Check whether we are running as root
**/
if (getuid() == 0) {
std::cout << "Executing KDE Partition Manager as root is not possible." << std::endl;
return 0;
}
#endif
QApplication app(argc, argv);
Kdelibs4ConfigMigrator migrate(QLatin1Literal("partitionmanager"));