Add polkit action file
This commit is contained in:
parent
87ae3a63f5
commit
779117672e
19
com.tromjaro.LayoutSwitcher.policy
Normal file
19
com.tromjaro.LayoutSwitcher.policy
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>TROMjaro</vendor>
|
||||
<vendor_url>https://www.tromjaro.com/</vendor_url>
|
||||
<icon_name>tromjaro-layout-switcher</icon_name>
|
||||
<action id="com.tromjaro.LayoutSwitcher.toggleGlobalMenu">
|
||||
<description gettext-domain="LayoutSwitcher">Install or remove global menu</description>
|
||||
<message gettext-domain="LayoutSwitcher">Authentication is required to install/remove global menu</message>
|
||||
<defaults>
|
||||
<allow_any>auth_admin</allow_any>
|
||||
<allow_inactive>auth_admin</allow_inactive>
|
||||
<allow_active>auth_admin</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/toggle-global-menu</annotate>
|
||||
</action>
|
||||
</policyconfig>
|
Loading…
Reference in New Issue
Block a user