diff --git a/desktop/kde/applications/kate/files/kwrite-17.04.0-allow-root.patch b/desktop/kde/applications/kate/files/kwrite-17.04.0-allow-root.patch
index cc31a24700..eccb5fe220 100755
--- a/desktop/kde/applications/kate/files/kwrite-17.04.0-allow-root.patch
+++ b/desktop/kde/applications/kate/files/kwrite-17.04.0-allow-root.patch
@@ -1,7 +1,7 @@
diff -Nuar a/kwrite/main.cpp b/kwrite/main.cpp
---- a/kwrite/main.cpp 2018-10-03 20:00:34.000000000 +0300
-+++ b/kwrite/main.cpp 2018-10-13 09:31:37.316058274 +0300
-@@ -42,25 +42,8 @@
+--- a/kwrite/main.cpp 2019-04-09 10:03:07.000000000 +0300
++++ b/kwrite/main.cpp 2019-04-18 21:54:45.688862069 +0300
+@@ -43,25 +43,8 @@
#include "../urlinfo.h"
@@ -16,10 +16,10 @@ diff -Nuar a/kwrite/main.cpp b/kwrite/main.cpp
- // Prohibit using sudo or kdesu (but allow using the root user directly)
- if (getuid() == 0) {
- if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
-- std::cout << "Executing Kate with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
+- std::cout << "Executing KWrite with sudo is not possible due to unfixable security vulnerabilities." << std::endl;
- return EXIT_FAILURE;
- } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) {
-- std::cout << "Executing Kate with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
+- std::cout << "Executing KWrite with kdesu is not possible due to unfixable security vulnerabilities." << std::endl;
- return EXIT_FAILURE;
- }
- }
diff --git a/desktop/kde/applications/kate/pspec.xml b/desktop/kde/applications/kate/pspec.xml
index 52f31d6ca6..b0f2cd2dc9 100755
--- a/desktop/kde/applications/kate/pspec.xml
+++ b/desktop/kde/applications/kate/pspec.xml
@@ -38,8 +38,8 @@
plasma-framework-devel
-
-
+ kate-17.04.0-allow-root.patch
+ kwrite-17.04.0-allow-root.patch