mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
30 lines
869 B
Plaintext
30 lines
869 B
Plaintext
From be93e5135dee02eb8a7d0b9588fd793400933419 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Fri, 23 Aug 2019 13:46:42 +0200
|
|
Subject: Disable root check for haiku
|
|
|
|
|
|
diff --git a/src/ui/main.cpp b/src/ui/main.cpp
|
|
index da417af..9a358e6 100644
|
|
--- a/src/ui/main.cpp
|
|
+++ b/src/ui/main.cpp
|
|
@@ -87,6 +87,7 @@ int main(int argc, char *argv[])
|
|
// Check for "run-and-exit" options like -h or -v
|
|
const auto parser = Notepadqq::getCommandLineArgumentsParser(QApplication::arguments());
|
|
|
|
+#ifndef Q_OS_HAIKU
|
|
// Check if we're running as root
|
|
if( getuid() == 0 && !parser->isSet("allow-root") ) {
|
|
qWarning() << QObject::tr(
|
|
@@ -95,6 +96,7 @@ int main(int argc, char *argv[])
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|
|
+#endif
|
|
|
|
if (a.attachToOtherInstance()) {
|
|
return EXIT_SUCCESS;
|
|
--
|
|
2.23.0
|
|
|