Skip to content

Commit

Permalink
Properly(?) honour -auth config option, create custom Xauthority file…
Browse files Browse the repository at this point in the history
… if not present
  • Loading branch information
62832 committed Mar 22, 2024
1 parent 80f0bb5 commit 41f31d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unix/vncserver/vncserver.in
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ if ($cookie eq "") {
}
}

$xauthorityFile = $config{'auth'} || $xauthorityFile;
open(XAUTH, "|xauth -f $xauthorityFile source -");
print XAUTH "add $host:$displayNumber . $cookie\n";
print XAUTH "add $host/unix:$displayNumber . $cookie\n";
Expand Down

0 comments on commit 41f31d0

Please sign in to comment.