]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-session-dbus.c
logind: when setting a new controller, don't prepare the VT if logind is restarted
authorFranck Bui <fbui@suse.com>
Wed, 26 Apr 2017 12:20:41 +0000 (14:20 +0200)
committerFranck Bui <fbui@suse.com>
Thu, 8 Jun 2017 14:21:36 +0000 (16:21 +0200)
commitdc6284e9efb0a6801dd7a951d39ebb7d9a279676
tree9a0889495859a3f3433083872a54fddcd7495162
parent4c47affcf1e501431f3cb567c516ec252dfc4bbc
logind: when setting a new controller, don't prepare the VT if logind is restarted

When assigning a new session controller to a session, the VT is prepared so the
controller can expect the VT to be in a good default state.

However when logind is restarted and a session controller already took control
of a session, there's no need to prepare th VT otherwise logind may screw up
the VT state set by the controller.

This patch prevents the preparation of the VT in this case.
src/login/logind-session-dbus.c
src/login/logind-session.c
src/login/logind-session.h