mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 21:18:51 +02:00
23 lines
604 B
Plaintext
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
|
|
|