From 04989cfafb8ea298efa94f0b03db0b3b17918f7f Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Wed, 12 Sep 2018 15:38:44 -0500 Subject: [PATCH] Autostart xdg-desktop-portal if needed This is a speculative fix for epiphany#533, which we think might be caused by xdg-desktop-portal not ever being started. This service is started on-demand, not automatically. --- gio/gnetworkmonitorportal.c | 3 +-- gio/gproxyresolverportal.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gio/gnetworkmonitorportal.c b/gio/gnetworkmonitorportal.c index 9a5820ab6..2c0eb8aea 100644 --- a/gio/gnetworkmonitorportal.c +++ b/gio/gnetworkmonitorportal.c @@ -432,8 +432,7 @@ g_network_monitor_portal_initable_init (GInitable *initable, } proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, - G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START - | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL, "org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop", diff --git a/gio/gproxyresolverportal.c b/gio/gproxyresolverportal.c index d5258006e..2c28a03e4 100644 --- a/gio/gproxyresolverportal.c +++ b/gio/gproxyresolverportal.c @@ -52,7 +52,7 @@ ensure_resolver_proxy (GProxyResolverPortal *resolver) return FALSE; resolver->resolver = gxdp_proxy_resolver_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, - G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START, + G_DBUS_PROXY_FLAGS_NONE, "org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop", NULL,