┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2023-05-08 17:46:51 +0200
committerMéven Car <[email protected]>2023-05-08 17:46:51 +0200
commit863ee3a87cee8b1f22a311d6a6a62e56714b5eae (patch)
tree728a2f70486e1835053e5c3431e72c62eb69ff82 /src/main.cpp
parent69f6b9b78b71f8369dc0ab9b9f9aecfd928d3eb1 (diff)
parent26808a188ccb5e35a05b37709e4fe61263c46032 (diff)
Merge branch 'master' into kf6
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e1e559f97..2d1ccd0c8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -54,10 +54,16 @@ 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." << std::endl;
+ std::cout << "Running Dolphin with sudo is not supported as it can cause bugs and expose you to security vulnerabilities. Instead, install the "
+ "`kio-admin` package from your distro and use it to manage root-owned locations by right-clicking on them and selecting \"Open as "
+ "Administrator\"."
+ << 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." << std::endl;
+ std::cout << "Running Dolphin with kdesu is not supported as it can cause bugs and expose you to security vulnerabilities. Instead, install the "
+ "`kio-admin` package from your distro and use it to manage root-owned locations by right-clicking on them and selecting \"Open as "
+ "Administrator\"."
+ << std::endl;
return EXIT_FAILURE;
}
}