Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -42,18 +42,6 @@
- extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
- {
- -#ifndef Q_OS_WIN
- - // Prohibit using sudo or kdesu (but allow using the root user directly)
- - if (getuid() == 0) {
- - if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
- - std::cout << "Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
- - return EXIT_FAILURE;
- - } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
- - std::cout << "Executing Dolphin with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
- - return EXIT_FAILURE;
- - }
- - }
- -#endif
- QApplication app(argc, argv);
- app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement