Code sync
[external/hplip.git] / packaging / kde4-kdesudo-support.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## kde4-kdesudo-support.dpatch by  <till.kamppeter@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad hplip-3.9.4b~/base/utils.py hplip-3.9.4b/base/utils.py
9 --- hplip-3.9.4b~/base/utils.py 2009-04-29 22:39:01.000000000 +0200
10 +++ hplip-3.9.4b/base/utils.py  2009-05-16 00:06:50.000000000 +0200
11 @@ -1572,6 +1572,12 @@
12      if which('kdesu'):
13          su_sudo_str = 'kdesu -- %s'
14  
15 +    elif utils.which('/usr/lib/kde4/libexec/kdesu'):
16 +        su_sudo_str = '/usr/lib/kde4/libexec/kdesu -- %s'
17 +
18 +    elif utils.which('kdesudo'):
19 +        su_sudo_str = 'kdesudo -- %s'
20 +
21      elif which('gnomesu'):
22          su_sudo_str = 'gnomesu -c "%s"'
23