summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-12-02 11:15:31 +0800
committermaz-12015-12-02 11:15:31 +0800
commitee496250eb9979e8ccce2037431a0c86360a78aa (patch)
tree13bd010cb100bcce3dc4fb18b09d43448146e0b9
parent252782637d5c0aaf3ab90c5e1d36f3c85f24c1ba (diff)
downloadaur-ee496250eb9979e8ccce2037431a0c86360a78aa.tar.gz
fix
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
-rwxr-xr-xucloner.desktop2
-rw-r--r--ucloner.gui.policy20
4 files changed, 4 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5f33d287489..ef43cc29d2a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -20,14 +20,12 @@ pkgbase = ucloner
source = ucloner.desktop
source = ucloner.png
source = modify_for_arch.patch
- source = ucloner.gui.policy
md5sums = b7bf49a5516cb9e00943e06e3e73adf2
md5sums = 3dac4b28900e7be1068b502b7b848028
md5sums = 15efc60875b77125f8d5399797306955
- md5sums = 617b6d95bee5d2ca778d3887203cce53
+ md5sums = 48ad21726f315719c215fa2172959371
md5sums = 1f913fe9ca34481134bc36e1045e9a20
md5sums = 47c1f138ebb7b4ef961be9f9dccd543a
- md5sums = 39121b9c5acfffe964d939025cc7014f
pkgname = ucloner
diff --git a/PKGBUILD b/PKGBUILD
index bc736cc240e..07e9a0fc02f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,16 +17,14 @@ source=(
'ucloner.desktop'
'ucloner.png'
'modify_for_arch.patch'
- 'ucloner.gui.policy'
)
md5sums=('b7bf49a5516cb9e00943e06e3e73adf2'
'3dac4b28900e7be1068b502b7b848028'
'15efc60875b77125f8d5399797306955'
- '617b6d95bee5d2ca778d3887203cce53'
+ '48ad21726f315719c215fa2172959371'
'1f913fe9ca34481134bc36e1045e9a20'
- '47c1f138ebb7b4ef961be9f9dccd543a'
- '39121b9c5acfffe964d939025cc7014f')
+ '47c1f138ebb7b4ef961be9f9dccd543a')
prepare() {
diff --git a/ucloner.desktop b/ucloner.desktop
index 84f04c27267..3f5b1592e6d 100755
--- a/ucloner.desktop
+++ b/ucloner.desktop
@@ -2,7 +2,7 @@
Categories=Utility;
Comment[zh_CN]=Linux系统备份工具
Comment=Linux system backup utility
-Exec=pkexec ucloner
+Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY ucloner
GenericName[zh_CN]=
GenericName=
Icon=ucloner
diff --git a/ucloner.gui.policy b/ucloner.gui.policy
deleted file mode 100644
index c2bf8d4a371..00000000000
--- a/ucloner.gui.policy
+++ /dev/null
@@ -1,20 +0,0 @@
-<?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