Commit b6d98eb7 authored by Benjamin Berg's avatar Benjamin Berg Committed by Benjamin Berg
Browse files

main: Warn about failures to update the environment

Closes: #71
parent 33bc7b8b
......@@ -529,12 +529,20 @@ main (int argc, char **argv)
}
}
gsm_util_export_activation_environment (NULL);
gsm_util_export_activation_environment (&error);
if (error) {
g_warning ("Failed to upload environment to DBus: %s", error->message);
g_clear_error (&error);
}
session_name = opt_session_name;
#ifdef HAVE_SYSTEMD
gsm_util_export_user_environment (NULL);
gsm_util_export_user_environment (&error);
if (error) {
g_warning ("Failed to upload environment to systemd: %s", error->message);
g_clear_error (&error);
}
#endif
#ifdef ENABLE_SYSTEMD_SESSION
......
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