From 6f025969e25fbb1c6bf73f8ca3bab42e697c53e4 Mon Sep 17 00:00:00 2001 From: Rmys Date: Mon, 13 Sep 2021 18:00:52 +0300 Subject: [PATCH] kate --- .../applications/kate/files/kate-17.04.0-allow-root.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/kde/applications/kate/files/kate-17.04.0-allow-root.patch b/desktop/kde/applications/kate/files/kate-17.04.0-allow-root.patch index bce5908fd4..e182d27513 100755 --- a/desktop/kde/applications/kate/files/kate-17.04.0-allow-root.patch +++ b/desktop/kde/applications/kate/files/kate-17.04.0-allow-root.patch @@ -1,10 +1,10 @@ diff -Nuar a/kate/main.cpp b/kate/main.cpp ---- a/kate/main.cpp 2021-04-14 18:06:06.000000000 +0300 -+++ b/kate/main.cpp 2021-05-09 23:14:47.943847179 +0300 +--- a/kate/main.cpp 2021-08-27 23:54:04.000000000 +0300 ++++ b/kate/main.cpp 2021-09-13 17:57:18.358487000 +0300 @@ -38,31 +38,8 @@ #include "qtsingleapplication/qtsingleapplication.h" #endif - + -#ifndef Q_OS_WIN -#include -#endif @@ -12,7 +12,7 @@ diff -Nuar a/kate/main.cpp b/kate/main.cpp - int main(int argc, char **argv) { --#ifndef Q_OS_WIN +-#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU) - // Prohibit using sudo or kdesu (but allow using the root user directly) - if (getuid() == 0) { - if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {