diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-07-10 17:49:59 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-07-10 17:49:59 +0200 |
commit | 08d05a30a3ca7002352104ad574552d288d7b429 (patch) | |
tree | 06fdbe488564c524b8b8d54a3aaa225bb3ffc6c3 /document-portal | |
parent | 4c4c66fc2d5da54ebb3580da87c37795ffc79253 (diff) | |
download | xdg-app-08d05a30a3ca7002352104ad574552d288d7b429.tar.gz |
Automatically start and mount document portal in sandbox
Diffstat (limited to 'document-portal')
-rw-r--r-- | document-portal/xdp-main.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/document-portal/xdp-main.c b/document-portal/xdp-main.c index fc250f1..bd0d868 100644 --- a/document-portal/xdp-main.c +++ b/document-portal/xdp-main.c @@ -388,13 +388,6 @@ on_name_acquired (GDBusConnection *connection, const gchar *name, gpointer user_data) { - g_autoptr(GError) error = NULL; - if (!xdp_fuse_init (db, &error)) - { - g_printerr ("fuse init failed: %s\n", error->message); - exit (1); - } - } static void @@ -544,6 +537,12 @@ main (int argc, introspection_data = g_dbus_node_info_new_for_xml (g_bytes_get_data (introspection_bytes, NULL), NULL); + if (!xdp_fuse_init (db, &error)) + { + g_printerr ("fuse init failed: %s\n", error->message); + return 1; + } + owner_id = g_bus_own_name (G_BUS_TYPE_SESSION, "org.freedesktop.portal.Documents", G_BUS_NAME_OWNER_FLAGS_NONE, |