From ded3840f6be3230d84835446be9f24fba9751e98 Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Fri, 13 Aug 2021 19:17:44 +1200 Subject: [PATCH] vncserver: extract PrintLogFilenameAndConfiguredUsersAndStuff() --- unix/vncserver | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/unix/vncserver b/unix/vncserver index 3594d6f..7252048 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -43,9 +43,7 @@ use Time::HiRes qw (sleep); &PrepareDefaultsForPassingToXvnc(); &StartXvncOrExit(); -warn "\nNew '$desktopName' desktop is $host:$displayNumber\n"; -&PrintKasmUsers(); -warn "Log file is $desktopLog\n\n"; +&PrintLogFilenameAndConfiguredUsersAndStuff(); &CreateUserConfigIfNeeded(); @@ -1087,3 +1085,9 @@ sub PrepareLoggingAndXvncKillingFramework { sub AllowXProgramsToConnectToXvnc { &SetupXauthorityFile(); } + +sub PrintLogFilenameAndConfiguredUsersAndStuff { + warn "\nNew '$desktopName' desktop is $host:$displayNumber\n"; + &PrintKasmUsers(); + warn "Log file is $desktopLog\n\n"; +}