Commit e1633895 authored by Ray Strode's avatar Ray Strode

local-display-factory: don't start two greeters at startup

commit c0188a70 added some complex code for starting
the login screen when the user switches to the initial
VT if nothing is running on that VT.

The problem is, we get a VT change event on that VT as
part of the start up process.

This leads to an additional greeter getting started.

This commit adds a check to side step the new code during

Closes: #409
parent 3bd4407f
......@@ -622,6 +622,12 @@ on_vt_changed (GIOChannel *source,
g_strchomp (tty_of_active_vt);
/* don't do anything if we're on the same VT we were before */
if (g_strcmp0 (tty_of_active_vt, factory->priv->tty_of_active_vt) == 0) {
g_debug ("GdmLocalDisplayFactory: VT changed to the same VT, ignoring");
tty_of_previous_vt = g_steal_pointer (&factory->priv->tty_of_active_vt);
factory->priv->tty_of_active_vt = g_steal_pointer (&tty_of_active_vt);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment