[gnome-control-center/randr-set-as-default] Add a policy file for RANDR settings
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/randr-set-as-default] Add a policy file for RANDR settings
- Date: Fri, 19 Mar 2010 22:12:36 +0000 (UTC)
commit 19f2644522d7751b52e16820a64039a481424fde
Author: Federico Mena Quintero <federico novell com>
Date: Thu Mar 11 14:57:36 2010 -0600
Add a policy file for RANDR settings
This is based on gnome-color-manager/policy/
Signed-off-by: Federico Mena Quintero <federico novell com>
capplets/display/Makefile.am | 11 ++++++++++
capplets/display/org.gnome.randr.policy.in | 29 ++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/capplets/display/Makefile.am b/capplets/display/Makefile.am
index 2d4a008..3aec54e 100644
--- a/capplets/display/Makefile.am
+++ b/capplets/display/Makefile.am
@@ -26,6 +26,14 @@ gnome_display_properties_install_systemwide_SOURCES = \
gnome_display_properties_install_systemwide_LDADD = \
$(GLIB_LIBS)
+polkit_policydir = $(datadir)/polkit-1/actions
+dist_polkit_policy_DATA = \
+ org.gnome.randr.policy
+
+# You will need a recent intltool or the patch from this bug
+# http://bugzilla.gnome.org/show_bug.cgi?id=462312
+ INTLTOOL_POLICY_RULE@
+
@INTLTOOL_DESKTOP_RULE@
icons16dir = $(datadir)/icons/hicolor/16x16/apps
@@ -63,4 +71,7 @@ update-icon-cache:
echo "*** $(gtk_update_icon_cache)"; \
fi
+EXTRA_DIST = org.gnome.randr.policy.in
+DISTCLEANFILES = org.gnome.randr.policy
+
-include $(top_srcdir)/git.mk
diff --git a/capplets/display/org.gnome.randr.policy.in b/capplets/display/org.gnome.randr.policy.in
new file mode 100644
index 0000000..ee2a39f
--- /dev/null
+++ b/capplets/display/org.gnome.randr.policy.in
@@ -0,0 +1,29 @@
+<?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>
+
+ <!--
+ Policy definitions for GNOME's system-wide configuration of RANDR options
+ Copyright (c) 2010 Novell, Inc.
+ -->
+
+ <vendor>GNOME Monitor Preferences</vendor>
+ <vendor_url>http://live.gnome.org/RandR</vendor_url>
+ <icon_name>gnome-display-properties</icon_name>
+
+ <action id="org.gnome.randr.install-system-wide">
+ <_description>Install multi-monitor settings for the whole system</_description>
+ <_message>Authentication is required to install multi-monitor settings for all users</_message>
+ <icon_name>gnome-display-properties</icon_name>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gnome-display-properties-install-systemwide</annotate>
+ </action>
+
+</policyconfig>
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]