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:
Olivier Fourdan 2023-09-29 16:19:42 +02:00 committed by Marge Bot
parent fe9017c15a
commit 8abbbc7ea9

View File

@ -549,7 +549,7 @@ meta_wayland_compositor_get_committed_transactions (MetaWaylandCompositor *compo
return &compositor->committed_transactions;
}
static void
static gboolean
set_gnome_env (const char *name,
const char *value)
{
@ -584,7 +584,10 @@ set_gnome_env (const char *name,
g_free (remote_error);
g_error_free (error);
return FALSE;
}
return TRUE;
}
static void meta_wayland_log_func (const char *, va_list) G_GNUC_PRINTF (1, 0);