3 Copyright (C) 2016 Red Hat, Inc.
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 Author: Matthias Clasen <mclasen@redhat.com>
21 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
23 org.freedesktop.portal.OpenURI:
24 @short_description: Portal for opening URIs
26 The OpenURI portal allows sandboxed applications to open
27 URIs (e.g. a http: link to the applications homepage)
28 under the control of the user.
30 <interface name="org.freedesktop.portal.OpenURI">
33 @parent_window: Identifier for the application window
35 @options: Vardict with optional further onformation
36 @handle: Object path for the #org.freedesktop.portal.Request object representing this call
40 The @parent_window identifier must be of the form "x11:$XID" for an X11
41 window. Support for other window systems may be added in the future.
43 Note that file:// uris are explicitly not supported by this method.
44 To request opening local files, use org.freedesktop.portal.OpenFile().
46 Supported keys in the @options vardict include:
49 <term>writable b</term>
51 Whether to allow the chosen application to write to the file.
53 This key only takes effect the uri points to a local file that
54 is exported in the document portal, and the chosen application
61 <method name="OpenURI">
62 <arg type="s" name="parent_window" direction="in"/>
63 <arg type="s" name="uri" direction="in"/>
64 <arg type="a{sv}" name="options" direction="in"/>
65 <arg type="o" name="handle" direction="out"/>
70 @parent_window: Identifier for the application window
71 @fd: File descriptor for the file to open
72 @options: Vardict with optional further onformation
73 @handle: Object path for the #org.freedesktop.portal.Request object representing this call
75 Asks to open a local file.
77 The @parent_window identifier must be of the form "x11:$XID" for an X11
78 window. Support for other window systems may be added in the future.
80 Supported keys in the @options vardict include:
83 <term>writable b</term>
85 Whether to allow the chosen application to write to the file.
87 This key only takes effect the uri points to a local file that
88 is exported in the document portal, and the chosen application
94 The OpenFile method was introduced in version 2 of the OpenURI portal API.
96 <method name="OpenFile">
97 <arg type="s" name="parent_window" direction="in"/>
98 <arg type="h" name="fd" direction="in"/>
99 <arg type="a{sv}" name="options" direction="in"/>
100 <arg type="o" name="handle" direction="out"/>
103 <property name="version" type="u" access="read"/>