diff options
author | Benjamin Berg <bberg@redhat.com> | 2021-03-10 11:43:00 +0100 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2021-03-15 13:35:30 +0000 |
commit | 527186cef3d87c641e0f767a59a6f23d24118e72 (patch) | |
tree | 4e7cd57ff865bbfc6e00f1f106212e7b4c50e4ee /daemon/gdm-session.c | |
parent | 6e0d2d74b4ba8fe003e0e0e4528adfd14435df92 (diff) | |
download | gdm-527186cef3d87c641e0f767a59a6f23d24118e72.tar.gz |
session: Initialize DBus error domain before resolving errors
We would not initialize the DBus error domain before we retrieved the
first error, but only did so to compare the error after receiving them.
This means that the first error we received will not be resolved
correctly, while all subsequent ones are resolved.
Fix this by calling GDM_SESSION_WORKER_ERROR from gdm_session_class_init
and add gdm_dbus_error_ensure to make sure this can never be optimized
away.
Diffstat (limited to 'daemon/gdm-session.c')
-rw-r--r-- | daemon/gdm-session.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c index a6f00b66..5c5903a4 100644 --- a/daemon/gdm-session.c +++ b/daemon/gdm-session.c @@ -3998,6 +3998,9 @@ gdm_session_class_init (GdmSessionClass *session_class) FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); #endif + + /* Ensure we can resolve errors */ + gdm_dbus_error_ensure (GDM_SESSION_WORKER_ERROR); } GdmSession * |