summaryrefslogtreecommitdiffstats
path: root/subsurface-core/subsurfacestartup.c
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/subsurfacestartup.c')
-rw-r--r--subsurface-core/subsurfacestartup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-core/subsurfacestartup.c b/subsurface-core/subsurfacestartup.c
index 71b2efb5e..6e0dede1c 100644
--- a/subsurface-core/subsurfacestartup.c
+++ b/subsurface-core/subsurfacestartup.c
@@ -217,6 +217,10 @@ void parse_argument(const char *arg)
run_survey = true;
return;
}
+ if (strcmp(arg, "--allow_run_as_root") == 0) {
+ ++force_root;
+ return;
+ }
if (strcmp(arg, "--win32console") == 0)
return;
/* fallthrough */