kde-applications
This commit is contained in:
@@ -16,14 +16,14 @@ diff -Nuar a/apps/kate/main.cpp b/apps/kate/main.cpp
|
||||
- // Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||
- if (getuid() == 0) {
|
||||
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||
- std::cout << "Running Kate with sudo can cause bugs and expose you to security vulnerabilities. "
|
||||
- "Instead use Kate normally and you will be prompted for elevated privileges when "
|
||||
- std::cout << "Running kate with sudo can cause bugs and expose you to security vulnerabilities. "
|
||||
- "Instead use kate normally and you will be prompted for elevated privileges when "
|
||||
- "saving documents if needed."
|
||||
- << std::endl;
|
||||
- return EXIT_FAILURE;
|
||||
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
|
||||
- std::cout << "Running Kate with kdesu can cause bugs and expose you to security vulnerabilities. "
|
||||
- "Instead use Kate normally and you will be prompted for elevated privileges when "
|
||||
- } else if (!qEnvironmentVariableIsEmpty("kdesu_USER")) {
|
||||
- std::cout << "Running kate with kdesu can cause bugs and expose you to security vulnerabilities. "
|
||||
- "Instead use kate normally and you will be prompted for elevated privileges when "
|
||||
- "saving documents if needed."
|
||||
- << std::endl;
|
||||
- return EXIT_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user