appinfo: support opening files through document portal

In addition to URIs, we now also support opening files internal to the
sandboxed application through the document portal.
This commit is contained in:
Cosimo Cecchi
2016-07-11 15:14:34 -07:00
parent f4e2047f20
commit 62bd8f54bb
5 changed files with 260 additions and 1 deletions

View File

@@ -344,6 +344,7 @@ BUILT_SOURCES += $(xdp_dbus_built_sources)
CLEANFILES += $(xdp_dbus_built_sources)
portal_interfaces = \
org.freedesktop.portal.Documents.xml \
org.freedesktop.portal.NetworkMonitor.xml \
org.freedesktop.portal.ProxyResolver.xml \
$(NULL)
@@ -357,6 +358,8 @@ $(xdp_dbus_built_sources) : $(portal_interfaces)
--interface-prefix org.freedesktop.portal. \
--c-namespace GXdp \
--generate-c-code $(builddir)/xdp-dbus \
--annotate "org.freedesktop.portal.Documents.Add()" "org.gtk.GDBus.C.UnixFD" "true" \
--annotate "org.freedesktop.portal.Documents.AddNamed()" "org.gtk.GDBus.C.UnixFD" "true" \
$^
portal_sources = \
@@ -389,6 +392,8 @@ libgio_2_0_la_SOURCES = \
gdatagrambased.c \
gdatainputstream.c \
gdataoutputstream.c \
gdocumentportal.c \
gdocumentportal.h \
gdrive.c \
gdummyfile.h \
gdummyfile.c \