diff options
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."; |