--- a/src/main.cpp 2021-08-29 13:35:35.000000000 -0400 +++ b/src/main.cpp 2021-09-26 15:41:33.358228002 -0400 @@ -33,31 +33,8 @@ #include #include -#ifndef Q_OS_WIN -#include -#endif -#include - int main(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 << "Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities. " - "Instead use Dolphin normally and you will be prompted for elevated privileges when " - "performing file operations that require them." - << std::endl; - return EXIT_FAILURE; - } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) { - std::cout << "Running Dolphin with kdesu can cause bugs and expose you to security vulnerabilities. " - "Instead use Dolphin normally and you will be prompted for elevated privileges when " - "performing file operations that require them." - << std::endl; - return EXIT_FAILURE; - } - } -#endif /** * enable high dpi support