vncserver: refactor

This commit is contained in:
Dmitry Maksyoma 2021-08-02 23:23:31 +12:00
parent 79c9c7157b
commit 08ede14dfe

View File

@ -125,9 +125,8 @@ unless (&IsXvncRunning()) {
warn "\nNew '$desktopName' desktop is $host:$displayNumber\n";
warn "\nUsername: $vncUserName\n\n";
# Create the user's xstartup script if necessary.
if (! $skipxstartup) {
&CreateXstartup();
&CreateXstartupIfNeeded();
}
# Create the user's config file if necessary.
@ -618,7 +617,7 @@ sub SanityCheck
}
}
sub CreateXstartup
sub CreateXstartupIfNeeded
{
if ((-e "$xstartupFile")) {
return;