Files
haikuports/kde-base/kate/patches/kate-19.03.80.patchset
Gerasim Troeglazov d3d28e8128 Kate: bump version
2019-03-24 23:14:58 +10:00

23 lines
604 B
Plaintext

From 7e90b4cdd7ae1b410a45e6388f501409c9b0b385 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sun, 24 Mar 2019 20:40:34 +1000
Subject: Allow running as root on Haiku
diff --git a/kate/main.cpp b/kate/main.cpp
index dca9ffc..a1f21c6 100644
--- a/kate/main.cpp
+++ b/kate/main.cpp
@@ -58,7 +58,7 @@
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")) {
--
2.19.1