vncserver: add easy -debug option to pass -log to Xvnc

This commit is contained in:
Dmitry Maksyoma
2021-10-13 22:45:47 +13:00
parent f7254e9708
commit ee3b7f9aa5

View File

@@ -732,6 +732,10 @@ sub ProcessCliOptions {
$fontPath = $opt{'-fp'};
$fpArgSpecified = 1;
}
if ($opt{'-debug'}) {
delete $opt{'-debug'};
$opt{'-log'} = '*:stderr:100';
}
}
sub CreateDotVncDir {
@@ -1102,7 +1106,7 @@ sub DefineFilePathsAndStuff {
}
sub ParseAndProcessCliOptions {
my @supportedOptions = ("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-kill",1,"-help",0,"-h",0,"--help",0,"-fp",1,"-list",0,"-fg",0,"-autokill",0,"-noxstartup",0,"-xstartup",1,"-select-de",OPTIONAL_ARG_VALUE, "-interface", REQUIRED_ARG_VALUE);
my @supportedOptions = ("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-kill",1,"-help",0,"-h",0,"--help",0,"-fp",1,"-list",0,"-fg",0,"-autokill",0,"-noxstartup",0,"-xstartup",1,"-select-de",OPTIONAL_ARG_VALUE, "-interface", REQUIRED_ARG_VALUE, '-debug', NO_ARG_VALUE);
&ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
&ProcessCliOptions();
&CheckGeometryAndDepthAreSensible();