[scanmem] Fix patch
Igor Gnatenko
ignatenkobrain at fedoraproject.org
Sun Dec 1 19:25:03 UTC 2013
commit 1cc776e39072e6e8cb973b18e8127826ce9d0f36
Author: Igor Gnatenko <i.gnatenko.brain at gmail.com>
Date: Sun Dec 1 23:23:13 2013 +0400
Fix patch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain at gmail.com>
0001-gui-improve-pkexec.patch | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/0001-gui-improve-pkexec.patch b/0001-gui-improve-pkexec.patch
index 9ec5174..e1b94d9 100644
--- a/0001-gui-improve-pkexec.patch
+++ b/0001-gui-improve-pkexec.patch
@@ -1,4 +1,4 @@
-From dba03490e5c06907ac7e469d9a9b20d738a845f6 Mon Sep 17 00:00:00 2001
+From b75f1be2768d983097add9c2676396085f97a2c1 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain at gmail.com>
Date: Sun, 1 Dec 2013 20:41:30 +0400
Subject: [PATCH] gui: improve pkexec
@@ -7,9 +7,9 @@ Signed-off-by: Igor Gnatenko <i.gnatenko.brain at gmail.com>
---
configure.ac | 1 +
gui/Makefile.am | 7 +++++--
- gui/gameconqueror.in | 12 +++++-------
+ gui/gameconqueror.in | 12 +++---------
gui/org.freedesktop.gameconqueror.policy.in | 20 ++++++++++++++++++++
- 4 files changed, 31 insertions(+), 9 deletions(-)
+ 4 files changed, 29 insertions(+), 11 deletions(-)
create mode 100644 gui/org.freedesktop.gameconqueror.policy.in
diff --git a/configure.ac b/configure.ac
@@ -46,27 +46,26 @@ index 10d8169..c85d793 100644
desktopdir=$(datadir)/applications
+polkitdir=$(datadir)/polkit-1/actions
diff --git a/gui/gameconqueror.in b/gui/gameconqueror.in
-index 020bcad..929f32a 100644
+index 020bcad..2413f93 100644
--- a/gui/gameconqueror.in
+++ b/gui/gameconqueror.in
-@@ -3,13 +3,11 @@
+@@ -2,14 +2,8 @@
+
DATADIR=@PKGDATADIR@
- if [[ "$(id -u)" != "0" ]]; then
+-if [[ "$(id -u)" != "0" ]]; then
- if [ -e "/usr/bin/gksu" ]; then
- exec gksu --sudo-mode --preserve-env --description "GameConqueror" "python -OO $DATADIR/GameConqueror.py"
- elif [ -e "/usr/bin/kdesu" ]; then
- exec kdesu -c "python -OO $DATADIR/GameConqueror.py"
- else
- exec beesu - "python -OO $DATADIR/GameConqueror.py"
-+ if [ -e "/usr/bin/pkexec" ]; then
-+ exec /usr/bin/pkexec $DATADIR/GameConqueror.py
- fi
-+ else
-+ echo "install polkit!"
+- fi
++if [ -e "/usr/bin/pkexec" ]; then
++ exec /usr/bin/pkexec $DATADIR/GameConqueror.py
else
- exec python -OO "$DATADIR/GameConqueror.py"
-+ exec $DATADIR/GameConqueror.py
++ echo "install polkit!"
fi
diff --git a/gui/org.freedesktop.gameconqueror.policy.in b/gui/org.freedesktop.gameconqueror.policy.in
new file mode 100644
More information about the scm-commits
mailing list