wayland: Have set_gnome_env() return a status
The function set_gnome_env() is used to pass environment variables though DBus using the "org.gnome.SessionManager". If that fails, it means we are not running in a full environment, which might be useful to determine whether Xwayland should enable the portal support. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3303>
This commit is contained in:
parent
fe9017c15a
commit
8abbbc7ea9
@ -549,7 +549,7 @@ meta_wayland_compositor_get_committed_transactions (MetaWaylandCompositor *compo
|
|||||||
return &compositor->committed_transactions;
|
return &compositor->committed_transactions;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
set_gnome_env (const char *name,
|
set_gnome_env (const char *name,
|
||||||
const char *value)
|
const char *value)
|
||||||
{
|
{
|
||||||
@ -584,7 +584,10 @@ set_gnome_env (const char *name,
|
|||||||
|
|
||||||
g_free (remote_error);
|
g_free (remote_error);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void meta_wayland_log_func (const char *, va_list) G_GNUC_PRINTF (1, 0);
|
static void meta_wayland_log_func (const char *, va_list) G_GNUC_PRINTF (1, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user