Skip to content

Commit

Permalink
Delete 'userconfig' hash key after use to not pass to X invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Mar 17, 2024
1 parent 119a5ff commit 6305134
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion unix/vncserver/vncserver.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ $default_opts{pn} = undef;
LoadConfig($vncSystemConfigDefaultsFile);

# Then the user's settings (location overrideable by previous system defaults)
LoadConfig($config{'userconfig'} || $vncUserConfig);
if (exists $config{'userconfig'}) {
LoadConfig($config{'userconfig'});
delete $config{'userconfig'};
} else {
LoadConfig($vncUserConfig);
}

# And then override anything set above if mandatory settings exist.
# WARNING: "Mandatory" is used loosely here! As the man page says,
Expand Down

0 comments on commit 6305134

Please sign in to comment.