Debian Codegraph @

data/org.freedesktop.portal.Background.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2019 Red Hat, Inc.
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library. If not, see <http://www.gnu.org/licenses/>.
19
20 Author: Matthias Clasen <[email protected]>
21 -->
22
23 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
24 <!--
25 org.freedesktop.portal.Background:
26 @short_description: Portal for requesting autostart and background activity
27
28 This simple interface lets sandboxed applications request that
29 the application is allowed to run in the background or started
30 automatically when the user logs in.
31
32 This documentation describes version 2 of this interface.
33 -->
34 <interface name="org.freedesktop.portal.Background">
35 <!--
36 RequestBackground:
37 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
38 @options: Vardict with optional further information
39 @handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call
40
41 Requests that the application is allowed to run in the background.
42
43 Supported keys in the @options vardict include:
44
45 * ``handle_token`` (``s``)
46
47 A string that will be used as the last element of the @handle.
48 Must be a valid object path element. See the
49 :ref:`org.freedesktop.portal.Request` documentation for more
50 information about the @handle.
51
52 * ``reason`` (``s``)
53
54 User-visible reason for the request.
55
56 * ``autostart`` (``b``)
57
58 true if the app also wants to be started automatically at login.
59
60 * ``commandline`` (``as``)
61
62 Commandline to use add when autostarting at login. If this is not
63 specified, the ``Exec`` key from the desktop file will be used.
64
65 * ``dbus-activatable`` (``b``)
66
67 true to use D-Bus activation for autostart.
68
69
70 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
71
72 * ``background`` (``b``)
73
74 true if the application is allowed to run in the background.
75
76 * ``autostart`` (``b``)
77
78 true if the application will be autostarted.
79 -->
80 <method name="RequestBackground">
81 <arg type="s" name="parent_window" direction="in"/>
82 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
83 <arg type="a{sv}" name="options" direction="in"/>
84 <arg type="o" name="handle" direction="out"/>
85 </method>
86
87 <!--
88 SetStatus:
89 @options: Vardict with optional further information
90
91 This method was added in version 2 of this interface.
92
93 Sets the status of the application running in background.
94
95 Supported keys in the @options vardict include:
96
97 * ``message`` (``s``)
98
99 A string that will be used as the status message of the application.
100 This should be a single line that can be presented to the user in a
101 list, not a full sentence or paragraph. Must be shorter than 96
102 characters.
103 -->
104 <method name="SetStatus">
105 <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap"/>
106 <arg type="a{sv}" name="options" direction="in"/>
107 </method>
108
109 <property name="version" type="u" access="read"/>
110 </interface>
111 </node>