Fix logout from VNC session using vncserver

Resolves: bz#1983704
This commit is contained in:
Jan Grulich 2021-07-19 19:06:45 +02:00
parent 36deca6cfd
commit d14f71fb04
2 changed files with 13 additions and 2 deletions

View File

@ -5,7 +5,7 @@
Name: tigervnc Name: tigervnc
Version: 1.11.0 Version: 1.11.0
Release: 16%{?dist} Release: 17%{?dist}
Summary: A TigerVNC remote display system Summary: A TigerVNC remote display system
%global _hardened_build 1 %global _hardened_build 1
@ -360,6 +360,10 @@ fi
%ghost %verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %ghost %verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
%changelog %changelog
* Mon Jul 19 2021 Jan Grulich <jgrulich@redhat.com> - 1.11.0-17
- Fix logout from VNC session using vncserver
Resolves: bz#1983704
* Tue Jun 01 2021 Jan Grulich <jgrulich@redhat.com> - 1.11.0-16 * Tue Jun 01 2021 Jan Grulich <jgrulich@redhat.com> - 1.11.0-16
- Bump version for rebuild (binutils) - Bump version for rebuild (binutils)
Resolves: bz#1961488 Resolves: bz#1961488

View File

@ -60,7 +60,14 @@ $defaultXStartup
= ("#!/bin/sh\n\n". = ("#!/bin/sh\n\n".
"unset SESSION_MANAGER\n". "unset SESSION_MANAGER\n".
"unset DBUS_SESSION_BUS_ADDRESS\n". "unset DBUS_SESSION_BUS_ADDRESS\n".
"exec /etc/X11/xinit/xinitrc\n"); "/etc/X11/xinit/xinitrc\n".
"# Assume either Gnome will be started by default when installed\n".
"# We want to kill the session automatically in this case when user logs out. In case you modify\n".
"# /etc/X11/xinit/Xclients or ~/.Xclients yourself to achieve a different result, then you should\n".
"# be responsible to modify below code to avoid that your session will be automatically killed\n".
"if [ -e /usr/bin/gnome-session ]; then\n".
" vncserver -kill \$DISPLAY\n".
"fi\n");
$defaultConfig $defaultConfig
= ("## Supported server options to pass to vncserver upon invocation can be listed\n". = ("## Supported server options to pass to vncserver upon invocation can be listed\n".