Commit d79eba59 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮 Committed by Christoph Cullmann
Browse files

improve kate on haiku os

incooperate the sole patches needed there from
haikuports


(cherry picked from commit 84f9368e)
parent f4c0d7aa
......@@ -45,7 +45,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")) {
......
......@@ -37,7 +37,7 @@
extern "C" Q_DECL_EXPORT 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")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment