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

[feat] don't drink and root

parent 9f1807c2
Branches
Tags
No related merge requests found
#include <csignal>
#include <unistd.h>
#include <QApplication>
#include <QTimer>
#include <QTranslator>
......@@ -146,6 +147,11 @@ int main(int argc, char **argv) {
exit(0);
}
if (getuid() == 0) {
qDebug() << "Please don't run as root. Aborting.";
exit(0);
}
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
qDebug() << "No systray icon available.";
availableSystray = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment