Commit b82fa2c6 authored by Niels De Graef's avatar Niels De Graef Committed by Niels De Graef

meta-launcher: g_propagate_*_error takes ownership

This means we need to make sure we don't accidentally free the provided
source GError (which automatically happens with `g_autoptr`), so use
`g_steal_pointer()`.

This fixes an issue where, when launched in a bubblewrap environment
(such as the one provided by Buildstream), mutter would give the
following warning message:

```
mutter-WARNING **: 8:31:35:069: Can't initialize KMS backend: (null)
```

... which isn't that useful when trying to debug the actual issue.
parent eaacbb32
Pipeline #58441 passed with stages
in 3 minutes and 37 seconds
......@@ -231,7 +231,9 @@ get_session_proxy (GCancellable *cancellable,
if (!find_systemd_session (&session_id, &local_error))
{
g_propagate_prefixed_error (error, local_error, "Could not get session ID: ");
g_propagate_prefixed_error (error,
g_steal_pointer (&local_error),
"Could not get session ID: ");
return NULL;
}
......@@ -465,7 +467,9 @@ get_seat_id (GError **error)
if (!find_systemd_session (&session_id, &local_error))
{
g_propagate_prefixed_error (error, local_error, "Could not get session ID: ");
g_propagate_prefixed_error (error,
g_steal_pointer (&local_error),
"Could not get session ID: ");
return NULL;
}
......
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