Unverified Commit acb38a41 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[feat] don't drink and root

parent 9f1807c2
#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;
......
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