From 3c48004086784bb0e16deee104a85b5845f348f9 Mon Sep 17 00:00:00 2001 From: Bharadwaj Raju Date: Mon, 17 Oct 2022 11:42:12 +0530 Subject: [PATCH] Fix sudo message We don't have KIO PolKit support yet --- src/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a9b85dbcc..611e3631c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } -- 2.47.3