[glib/glib-2-58: 1/2] Autostart xdg-desktop-portal if needed



commit ce2e543c09845efe3e8b2e32c4e5d61ec725b0a8
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Sep 12 15:38:44 2018 -0500

    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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]