Unverified Commit 14c7a717 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[bug] no getuid in windows

parent 0da23a39
Pipeline #61456 failed with stages
in 63 minutes and 53 seconds
......@@ -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.";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment