1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## kde4-kdesudo-support.dpatch by <till.kamppeter@gmail.com>
4 ## All lines beginning with `## DP:' are a description of the patch.
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 @@
13 su_sudo_str = 'kdesu -- %s'
15 + elif utils.which('/usr/lib/kde4/libexec/kdesu'):
16 + su_sudo_str = '/usr/lib/kde4/libexec/kdesu -- %s'
18 + elif utils.which('kdesudo'):
19 + su_sudo_str = 'kdesudo -- %s'
21 elif which('gnomesu'):
22 su_sudo_str = 'gnomesu -c "%s"'