summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-11-29 12:04:40 +0800
committermaz-12015-11-29 12:04:40 +0800
commitfd88e2118d970a411ce70158152dc7291bbc0e71 (patch)
treeca5d9c265054eda948c8286b3d445a7542780bf5
parent8076ea37faa036c47f708d1b8c7ca4649b5f0286 (diff)
downloadaur-fd88e2118d970a411ce70158152dc7291bbc0e71.tar.gz
fix
-rw-r--r--PKGBUILD5
-rw-r--r--ucloner.gui.policy20
2 files changed, 24 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d0f270e3c462..bc736cc240e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,6 +17,7 @@ source=(
'ucloner.desktop'
'ucloner.png'
'modify_for_arch.patch'
+ 'ucloner.gui.policy'
)
md5sums=('b7bf49a5516cb9e00943e06e3e73adf2'
@@ -24,7 +25,8 @@ md5sums=('b7bf49a5516cb9e00943e06e3e73adf2'
'15efc60875b77125f8d5399797306955'
'617b6d95bee5d2ca778d3887203cce53'
'1f913fe9ca34481134bc36e1045e9a20'
- '47c1f138ebb7b4ef961be9f9dccd543a')
+ '47c1f138ebb7b4ef961be9f9dccd543a'
+ '39121b9c5acfffe964d939025cc7014f')
prepare() {
@@ -44,5 +46,6 @@ package() {
install -Dm 755 "${srcdir}/ucloner-cmd.sh" "$pkgdir/usr/bin/ucloner-cmd"
install -Dm 755 "${srcdir}/ucloner.desktop" "$pkgdir/usr/share/applications/ucloner.desktop"
install -Dm 755 "${srcdir}/ucloner.png" "$pkgdir/usr/share/pixmaps/ucloner.png"
+ install -Dm 755 "${srcdir}/ucloner.gui.policy" "$pkgdir//usr/share/polkit-1/actions/ucloner.gui.policy"
}
diff --git a/ucloner.gui.policy b/ucloner.gui.policy
new file mode 100644
index 000000000000..c2bf8d4a3712
--- /dev/null
+++ b/ucloner.gui.policy
@@ -0,0 +1,20 @@
+<?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/policyconfig.dtd">
+<policyconfig>
+
+ <action id="org.freedesktop.policykit.pkexec.run-gparted">
+ <description>Run UCloner</description>
+ <description xml:lang="zh_CN">运行UCloner</description>
+ <message>Authentication is required to run UCloner</message>
+ <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/bin/ucloner</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
+ </action>
+
+</policyconfig> \ No newline at end of file