summaryrefslogtreecommitdiff
path: root/gui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index f2545d3..3e96761 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -65,6 +65,12 @@ int main(int argc, char **argv) {
bool debugQml = getEnv("DEBUG_QML_DATA") == "yes";
+ if (argc > 1 && strcmp(argv[1], "install-helpers") == 0) {
+ qDebug() << "Will try to install helpers with sudo";
+ InstallHelpers();
+ exit(0);
+ }
+
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
app.setQuitOnLastWindowClosed(false);