diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-07-01 11:36:00 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-07-01 11:36:00 +0200 |
commit | 14c7a717d7f0763460d6505a75f0a81d22806d6f (patch) | |
tree | 75c7eeea1e853b546d84ff8c2335224ba46e778c /gui/main.cpp | |
parent | 0da23a3920a82cc3d8a2fb956333adbbcdb5bf5f (diff) |
[bug] no getuid in windows
Diffstat (limited to 'gui/main.cpp')
-rw-r--r-- | gui/main.cpp | 2 |
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."; |