1234567891011121314151617181920212223242526272829 |
- diff -Nuar a/src/main.cpp b/src/main.cpp
- --- a/src/main.cpp 2023-04-14 06:19:08.000000000 +0300
- +++ b/src/main.cpp 2023-04-20 21:26:52.104629720 +0300
- @@ -52,15 +52,15 @@
- {
- #ifndef Q_OS_WIN
- // Prohibit using sudo or kdesu-kf6 (but allow using the root user directly)
- - if (getuid() == 0) {
- - if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
- - std::cout << "Running dolphin-kf6 with sudo can cause bugs and expose you to security vulnerabilities." << std::endl;
- - return EXIT_FAILURE;
- - } else if (!qEnvironmentVariableIsEmpty("kdesu-kf6_USER")) {
- - std::cout << "Running dolphin-kf6 with kdesu-kf6 can cause bugs and expose you to security vulnerabilities." << std::endl;
- - return EXIT_FAILURE;
- - }
- - }
- + //if (getuid() == 0) {
- + // if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
- + // std::cout << "Running dolphin-kf6 with sudo can cause bugs and expose you to security vulnerabilities." << std::endl;
- + // return EXIT_FAILURE;
- + //} else if (!qEnvironmentVariableIsEmpty("kdesu-kf6_USER")) {
- + // std::cout << "Running dolphin-kf6 with kdesu-kf6 can cause bugs and expose you to security vulnerabilities." << std::endl;
- + //return EXIT_FAILURE;
- + //}
- + //}
- #endif
-
- /**
|