aboutsummaryrefslogtreecommitdiffstats
path: root/qtsixa/qtsixa-gksudo.patch
blob: be48f50066c93d7d62b4f64626e4c22623e8edd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
diff -urpN QtSixA-1.5.1.orig/qtsixa/qtsixa QtSixA-1.5.1/qtsixa/qtsixa
--- QtSixA-1.5.1.orig/qtsixa/qtsixa	2012-12-06 22:04:55.574316391 -0800
+++ QtSixA-1.5.1/qtsixa/qtsixa	2012-12-06 22:33:20.185320845 -0800
@@ -10,44 +10,53 @@ case $1 in
 KDESU='kdesu -- '
 KDESUDO='kdesudo -i /usr/share/qtsixa/icons/qtsixa.png -- '
 GKSU='gksu --description /usr/share/applications/qtsixa.desktop -- '
+GKSUDO='gksudo --description /usr/share/applications/qtsixa.desktop --'
 
 #taken from winetricks (modified):
 if [ x"$KDE_FULL_SESSION" = x"true" ]; then
 { #KDE
     if [ -f /usr/bin/kdesudo ]; then ROOT="$KDESUDO"; else
       if [ -f /usr/bin/kdesu ]; then ROOT="$KDESU"; else
-        if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
-          ROOT='sudo'
+        if [ -f /usr/bin/gksudo ]; then ROOT="$GKSUDO"; else
+          if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
+            ROOT='sudo'
+          fi
         fi
       fi
     fi
 } #KDE (End)
 else if [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then
 { #Gnome
-    if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
-      if [ -f /usr/bin/kdesudo ]; then ROOT="$KDESUDO"; else
-        if [ -f /usr/bin/kdesu ]; then ROOT="$KDESU"; else
-          ROOT='sudo'
+    if [ -f /usr/bin/gksudo ]; then ROOT="$GKSUDO"; else
+      if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
+        if [ -f /usr/bin/kdesudo ]; then ROOT="$KDESUDO"; else
+          if [ -f /usr/bin/kdesu ]; then ROOT="$KDESU"; else
+            ROOT='sudo'
+          fi
         fi
       fi
     fi
 } #Gnome (End)
 else if [ x"$DISPLAY" != x"" ]; then
 { #Other X
-    if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
-      if [ -f /usr/bin/kdesudo ]; then ROOT="$KDESUDO"; else
-        if [ -f /usr/bin/kdesu ]; then ROOT="$KDESU"; else
-          ROOT='sudo'
+    if [ -f /usr/bin/gksudo ]; then ROOT="$GKSUDO"; else
+      if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
+        if [ -f /usr/bin/kdesudo ]; then ROOT="$KDESUDO"; else
+          if [ -f /usr/bin/kdesu ]; then ROOT="$KDESU"; else
+            ROOT='sudo'
+          fi
         fi
       fi
     fi
 } #Other X (End)
 else
 { #No known session
-    if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
-      if [ -f /usr/bin/kdesudo ]; then ROOT="$KDESUDO"; else
-        if [ -f /usr/bin/kdesu ]; then ROOT="$KDESU"; else
-          ROOT='sudo'
+    if [ -f /usr/bin/gksudo ]; then ROOT="$GKSUDO"; else
+      if [ -f /usr/bin/gksu ]; then ROOT="$GKSU"; else
+        if [ -f /usr/bin/kdesudo ]; then ROOT="$KDESUDO"; else
+          if [ -f /usr/bin/kdesu ]; then ROOT="$KDESU"; else
+            ROOT='sudo'
+          fi
         fi
       fi
     fi