1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## simple-scan-as-default.dpatch by <till.kamppeter@gmail.com>
4 ## All lines beginning with `## DP:' are a description of the patch.
8 diff -urNad hplip-3.10.2~/base/utils.py hplip-3.10.2/base/utils.py
9 --- hplip-3.10.2~/base/utils.py 2010-02-25 00:07:40.000000000 +0100
10 +++ hplip-3.10.2/base/utils.py 2010-03-24 09:05:57.660740026 +0100
15 - path = which('xsane')
17 + path = which('simple-scan')
19 - self.cmd_scan = 'xsane -V %SANE_URI%'
20 + self.cmd_scan = 'simple-scan %SANE_URI%'
22 - path = which('kooka')
23 + path = which('xsane')
25 - self.cmd_scan = 'kooka'
26 + self.cmd_scan = 'xsane -V %SANE_URI%'
28 - path = which('xscanimage')
29 + path = which('kooka')
31 - self.cmd_scan = 'xscanimage'
32 + self.cmd_scan = 'kooka'
34 + path = which('xscanimage')
36 + self.cmd_scan = 'xscanimage'
39 path = which('hp-unload')
40 diff -urNad hplip-3.10.2~/ui4/ui_utils.py hplip-3.10.2/ui4/ui_utils.py
41 --- hplip-3.10.2~/ui4/ui_utils.py 2010-02-25 00:07:15.000000000 +0100
42 +++ hplip-3.10.2/ui4/ui_utils.py 2010-03-24 09:07:08.200766557 +0100
46 def loadDefaults(self):
47 - self.cmd_scan = self.__setup(['xsane -V %SANE_URI%', 'kooka', 'xscanimage'])
48 + self.cmd_scan = self.__setup(['simple-scan %SANE_URI%', 'xsane -V %SANE_URI%', 'kooka', 'xscanimage'])
49 self.cmd_fab = self.__setup(['hp-fab'])