mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
GtkApplication: Respect GTK_USE_PORTAL
When the environment variable is set, don't connect to the session manager, but instead rely on the inhibit portal.
This commit is contained in:
parent
04c02e9aec
commit
d7228ae025
@ -199,6 +199,9 @@ gtk_application_impl_dbus_startup (GtkApplicationImpl *impl,
|
||||
dbus->object_path = g_application_get_dbus_object_path (G_APPLICATION (impl->application));
|
||||
dbus->unique_name = g_dbus_connection_get_unique_name (dbus->session);
|
||||
|
||||
if (gtk_should_use_portal ())
|
||||
goto out;
|
||||
|
||||
g_debug ("Connecting to session manager");
|
||||
|
||||
/* Try the GNOME session manager first */
|
||||
|
Loading…
Reference in New Issue
Block a user