]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix sudo message
authorBharadwaj Raju <bharadwaj.raju777@protonmail.com>
Mon, 17 Oct 2022 06:12:12 +0000 (11:42 +0530)
committerMéven Car <meven.car@kdemail.net>
Sun, 29 Jan 2023 10:46:12 +0000 (10:46 +0000)
We don't have KIO PolKit support yet

src/main.cpp

index a9b85dbcc8971ea82fc292a67ba8ea5e44f87c2a..611e3631ccadae3411e6a7a09c66fecbd5a5d33a 100644 (file)
@@ -54,15 +54,11 @@ int main(int argc, char **argv)
     // 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::cout << "Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities."
                       << 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::cout << "Running Dolphin with kdesu can cause bugs and expose you to security vulnerabilities."
                       << std::endl;
             return EXIT_FAILURE;
         }