Error not cleared when RUNNING_UNDER_GDM is set
In main()
after gsm_util_export_user_environment()
, error
is only cleared if RUNNING_UNDER_GDM
is not set. This can result in the error still being set when later used in gsm_util_systemd_reset_failed()
and gsm_util_start_systemd_unit()
, resulting in an error message:
Apr 16 18:51:16 t460 gnome-session-binary[15061]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Apr 16 18:51:16 t460 gnome-session-binary[15061]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
I think this is a regression caused by !78 (merged) which should probably only have skipped printing the warning if RUNNING_UNDER_GDM
but not clearing the error.