| 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: Felipe Borges <[email protected]> |
| 21 |
--> |
| 22 |
|
| 23 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 24 |
<!-- |
| 25 |
org.freedesktop.portal.Wallpaper: |
| 26 |
@short_description: Portal for setting the desktop's Wallpaper |
| 27 |
|
| 28 |
This simple interface lets sandboxed applications set the user's |
| 29 |
desktop background picture. |
| 30 |
|
| 31 |
This documentation describes version 1 of this interface. |
| 32 |
--> |
| 33 |
<interface name="org.freedesktop.portal.Wallpaper"> |
| 34 |
<!-- |
| 35 |
SetWallpaperURI: |
| 36 |
@parent_window: Identifier for the application window, see :doc:`window-identifiers` |
| 37 |
@uri: The picture file URI according to RFC 3986 |
| 38 |
@options: Options that influence the behavior of the portal |
| 39 |
@handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call |
| 40 |
|
| 41 |
Asks to set a given picture as the desktop background picture. |
| 42 |
|
| 43 |
Note that file: uris are explicitly not supported here. To use a local image file as |
| 44 |
background, use the org.freedesktop.portal.Wallpaper.SetWallpaperFile() method. |
| 45 |
|
| 46 |
Supported keys in the @options vardict include: |
| 47 |
|
| 48 |
* ``show-preview`` (``b``) |
| 49 |
|
| 50 |
Whether to show a preview of the picture. Note that the portal may |
| 51 |
decide to show a preview even if this option is not set. |
| 52 |
|
| 53 |
* ``set-on`` (``s``) |
| 54 |
|
| 55 |
Where to set the wallpaper. Possible values are ``background``, |
| 56 |
``lockscreen``, or ``both``. |
| 57 |
--> |
| 58 |
<method name="SetWallpaperURI"> |
| 59 |
<arg type="s" name="parent_window" direction="in"/> |
| 60 |
<arg type="s" name="uri" direction="in"/> |
| 61 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 62 |
<arg type="a{sv}" name="options" direction="in"/> |
| 63 |
<arg type="o" name="handle" direction="out"/> |
| 64 |
</method> |
| 65 |
|
| 66 |
<!-- |
| 67 |
SetWallpaperFile: |
| 68 |
@parent_window: Identifier for the application window, see :doc:`window-identifiers` |
| 69 |
@fd: File descriptor for the file to open |
| 70 |
@options: Options that influence the behavior of the portal |
| 71 |
@handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call |
| 72 |
|
| 73 |
Asks to set a given local file as the desktop background picture. |
| 74 |
|
| 75 |
Supported keys in the @options vardict include: |
| 76 |
|
| 77 |
* ``show-preview`` (``b``) |
| 78 |
|
| 79 |
Whether to show a preview of the picture. Note that the portal may |
| 80 |
decide to show a preview even if this option is not set. |
| 81 |
|
| 82 |
* ``set-on`` (``s``) |
| 83 |
|
| 84 |
Where to set the wallpaper. Possible values are ``background``, |
| 85 |
``lockscreen``, or ``both``. |
| 86 |
--> |
| 87 |
<method name="SetWallpaperFile"> |
| 88 |
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/> |
| 89 |
<arg type="s" name="parent_window" direction="in"/> |
| 90 |
<arg type="h" name="fd" direction="in"/> |
| 91 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 92 |
<arg type="a{sv}" name="options" direction="in"/> |
| 93 |
<arg type="o" name="handle" direction="out"/> |
| 94 |
</method> |
| 95 |
|
| 96 |
<property name="version" type="u" access="read"/> |
| 97 |
</interface> |
| 98 |
</node> |