From fc732f3603a56424955e31b41856407f2b90f92c Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Fri, 30 Jul 2021 23:40:51 +1200 Subject: [PATCH] vncserver: refactor --- unix/vncserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/vncserver b/unix/vncserver index f4cab40..b74f6c1 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -405,7 +405,7 @@ if (! $skipxstartup) { warn "Log file is $desktopLog\n\n"; if (! $skipxstartup) { - &DetectDisplay(); + &DetectAndExportDisplay(); $ENV{VNCDESKTOP}= $desktopName; &RunXstartup(); @@ -890,7 +890,7 @@ sub CreateXstartup chmod 0755, "$xstartupFile"; } -sub DetectDisplay { +sub DetectAndExportDisplay { # If the unix domain socket exists then use that (DISPLAY=:n) otherwise use # TCP (DISPLAY=host:n)