Commit a21ec621 authored by Allison Lortie's avatar Allison Lortie Committed by Stef Walter

Provide a sample extension interface

...and a polkit action file to go with.

https://bugs.freedesktop.org/show_bug.cgi?id=63733
parent 21de4bd5
<node>
<!--
1. Copy this example to this directory:
# install -c -m 644 doc/org.mydm.MyDisplayManager.Wallpaper.xml $prefix/share/dbus-1/interfaces
2. Link into accountsservice interfaces directory:
# install -d $prefix/share/accountsservice/interfaces/
# ln -s ../../dbus-1/interfaces/org.mydm.MyDisplayManager.Wallpaper.xml $prefix/share/accountsservice/interfaces/
3. Reload accounts-daemon
-->
<interface name="org.mydm.MyDisplayManager.Wallpaper">
<annotation name="org.freedesktop.Accounts.VendorExtension" value="true"/>
<!-- defaults to always allowed -->
<!--
<annotation name="org.freedesktop.Accounts.Authentication.ReadOwn"
value="org.mydm.MyDisplayManager.ReadWallpaper"/>
<annotation name="org.freedesktop.Accounts.Authentication.ReadAny"
value="org.mydm.MyDisplayManager.ReadWallpaper"/>
-->
<!-- defaults to org.freedesktop.accounts.user-administration -->
<annotation name="org.freedesktop.Accounts.Authentication.ChangeAny"
value="org.mydm.MyDisplayManager.ModifyWallpaper"/>
<!-- defaults to org.freedesktop.accounts.change-own-user-data -->
<!--
<annotation name="org.freedesktop.Accounts.Authentication.ChangeOwn"
value="org.mydm.MyDisplayManager.ModifyWallpaper"/>
-->
<property name="filename" type="s" access="readwrite"/>
<property name="display-mode" type="s" access="readwrite">
<annotation name="org.freedesktop.Accounts.DefaultValue.String" value="zoom"/>
</property>
<property name="background-color" type="(iii)" access="readwrite">
<annotation name="org.freedesktop.Accounts.DefaultValue" value="(0xdd, 0x48, 0x14)"/>
</property>
</interface>
</node>
<!-- must install file in XDG_DATA_DIRS/dbus-1/interfaces
and symlink to it from XDG_DATA_DIRS/accountsservice/interface
with the same basename, using a relative path starting '../../dbus-1/interfaces/"
-->
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.mydm.MyDisplayManager.ModifyWallpaper">
<description>Set wallpaper of any user</description>
<message>Authentication is required to set another user's wallpaper.</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
</policyconfig>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment