Commit 84f9368e authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

improve kate on haiku os

incooperate the sole patches needed there from
haikuports
parent a4d729a3
Pipeline #73074 passed with stage
in 5 minutes and 55 seconds
......@@ -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