dolphin-17.04.0-allow-root.patch 842 B

123456789101112131415161718192021222324252627
  1. diff -Naur dolphin-17.04.0.old/src/main.cpp dolphin-17.04.0/src/main.cpp
  2. --- dolphin-17.04.0.old/src/main.cpp 2017-04-25 02:44:57.440557635 -0400
  3. +++ dolphin-17.04.0/src/main.cpp 2017-04-25 02:45:22.535328410 -0400
  4. @@ -35,21 +35,8 @@
  5. #include <KLocalizedString>
  6. #include <Kdelibs4ConfigMigrator>
  7. -#ifndef Q_OS_WIN
  8. -#include <unistd.h>
  9. -#endif
  10. -#include <iostream>
  11. -
  12. extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
  13. {
  14. -#ifndef Q_OS_WIN
  15. - // Check whether we are running as root
  16. - if (getuid() == 0) {
  17. - std::cout << "Executing Dolphin as root is not possible." << std::endl;
  18. - return EXIT_FAILURE;
  19. - }
  20. -#endif
  21. -
  22. QApplication app(argc, argv);
  23. app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
  24. app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon()));