vncserver: refactor

This commit is contained in:
Dmitry Maksyoma 2021-08-01 20:53:07 +12:00
parent c79da47c21
commit efbf401c8e

View File

@ -81,11 +81,7 @@ chop($host = `uname -n`);
&DetectDisplayNumberFromCliArgs();
$vncPort = 5900 + $displayNumber;
if ($opt{'-name'}) {
$desktopName = $opt{'-name'};
} else {
$desktopName = "$host:$displayNumber ($ENV{USER})";
}
$desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
my %default_opts;
my %config;