chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
commitc3e41400d106b6c2482d9d42298fac1a6a882071
tree90499afe24c28297edb669ab359ada04d05173dd
parent9045f431a2a7d05a3a897829eb2c2f0b77edd2be
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