┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBharadwaj Raju <[email protected]>2022-10-17 11:42:12 +0530
committerMéven Car <[email protected]>2023-01-29 10:46:12 +0000
commit3c48004086784bb0e16deee104a85b5845f348f9 (patch)
treedacb9e560e7344be0a215250be8ce482bf9cea0c /src
parent2d5aa3bbe27204a641e654c71dd836dd3b4c3b77 (diff)
Fix sudo message
We don't have KIO PolKit support yet
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files 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;
}