summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-07-01 11:36:00 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-07-01 11:36:00 +0200
commit14c7a717d7f0763460d6505a75f0a81d22806d6f (patch)
tree75c7eeea1e853b546d84ff8c2335224ba46e778c /gui
parent0da23a3920a82cc3d8a2fb956333adbbcdb5bf5f (diff)
[bug] no getuid in windows
Diffstat (limited to 'gui')
-rw-r--r--gui/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index a172766..d10cb51 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -147,10 +147,12 @@ int main(int argc, char **argv) {
exit(0);
}
+#ifdef Q_OS_UNIX
if (getuid() == 0) {
qDebug() << "Please don't run as root. Aborting.";
exit(0);
}
+#endif
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
qDebug() << "No systray icon available.";