diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-12-07 11:35:33 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-12-07 11:35:33 +0100 |
commit | 8641c3b1b304cd54c861650b939835fb30ca64b9 (patch) | |
tree | 1e1e1e16c3c1ed82b98f00a96691873da86ecee9 /qtsixa/qtsixa-gksudo.patch | |
parent | m (diff) | |
download | aur-packages-8641c3b1b304cd54c861650b939835fb30ca64b9.tar.gz aur-packages-8641c3b1b304cd54c861650b939835fb30ca64b9.tar.bz2 aur-packages-8641c3b1b304cd54c861650b939835fb30ca64b9.tar.xz |
patch for qtsixa
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'qtsixa/qtsixa-gksudo.patch')
-rw-r--r-- | qtsixa/qtsixa-gksudo.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/qtsixa/qtsixa-gksudo.patch b/qtsixa/qtsixa-gksudo.patch new file mode 100644 index 0000000..be48f50 --- /dev/null +++ b/qtsixa/qtsixa-gksudo.patch @@ -0,0 +1,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 |