Skip to content
Snippets Groups Projects
Unverified Commit 14c7a717 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[bug] no getuid in windows

parent 0da23a39
No related branches found
No related tags found
No related merge requests found
......@@ -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.";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment