vncserver: ignore new session parameter from the new systemd support

This commit is contained in:
Jan Grulich 2020-12-10 07:45:56 +01:00
parent 3a484bb46b
commit f0066896c0
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: tigervnc
Version: 1.11.0
Release: 8%{?dist}
Release: 9%{?dist}
Summary: A TigerVNC remote display system
%global _hardened_build 1
@ -338,6 +338,9 @@ fi
%{_datadir}/selinux/packages/vncsession.pp
%changelog
* Thu Dec 10 07:45:46 CET 2020 Jan Grulich <jgrulich@redhat.com> - 1.11.0-9
- vncserver: ignore new session parameter from the new systemd support
* Fri Nov 13 14:08:29 CET 2020 Jan Grulich <jgrulich@redhat.com> - 1.11.0-8
- Use /run instead of /var/run which is just a symlink

View File

@ -435,6 +435,9 @@ sub LoadConfig {
next if /^#/;
if (my ($k, $v) = /^\s*(\w+)\s*=\s*(.+)$/) {
$k = lc($k); # must normalize key case
if ($k eq "session") {
next;
}
if ($warnoverride && $config{$k}) {
print("Warning: $configFile is overriding previously defined '$k' to be '$v'\n");
}