mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Fix sudo message
We don't have KIO PolKit support yet
This commit is contained in:
parent
2d5aa3bbe2
commit
3c48004086
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue