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.
This commit is contained in:
Michael Catanzaro 2018-09-12 15:38:44 -05:00
parent 0e0b94d635
commit 04989cfafb
2 changed files with 2 additions and 3 deletions

View File

@ -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",

View File

@ -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,