Debian Codegraph @

debian/patches/0009-Make-simple-scan-the-default-scanning-frontend.patch

raw symbols SCIP
1 Fromscip-debian debian hplip 3.26.4+dfsg0-2 hplip/patches/`0009-Make-simple-scan-the-default-scanning-frontend.patch`#From.: Till Kamppeter <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian hplip 3.26.4+dfsg0-2 hplip/patches/`0009-Make-simple-scan-the-default-scanning-frontend.patch`#Date.: Fri, 22 Jul 2016 09:32:55 +0200
3 Subjectscip-debian debian hplip 3.26.4+dfsg0-2 hplip/patches/`0009-Make-simple-scan-the-default-scanning-frontend.patch`#Subject.: Make simple-scan the default scanning frontend
4
5 LP: #539015
6 ---
7 base/utils.py | 17 ++++++++++-------
8 ui5/ui_utils.py | 2 +-
9 2 files changed, 11 insertions(+), 8 deletions(-)
10
11 diff --git a/base/utils.pyscip-debian debian hplip 3.26.4+dfsg0-2 hplip/upstream/`base/utils.py`: b/base/utils.pyscip-debian debian hplip 3.26.4+dfsg0-2 hplip/upstream/`base/utils.py`:
12 index 780e476..e6b5532 100644
13 --- a/base/utils.py
14 +++ b/base/utils.py
15 @@ -598,18 +598,21 @@ class UserSettings(object): # Note: Deprecated after 2.8.8 in Qt4 (see ui4/ui_ut
16
17 # Scan
18 self.cmd_scan = ''
19 - path = which('xsane')
20 -
21 + path = which('simple-scan')
22 if len(path) > 0:
23 - self.cmd_scan = 'xsane -V %SANE_URI%'
24 + self.cmd_scan = 'simple-scan %SANE_URI%'
25 else:
26 - path = which('kooka')
27 + path = which('xsane')
28 if len(path) > 0:
29 - self.cmd_scan = 'kooka'
30 + self.cmd_scan = 'xsane -V %SANE_URI%'
31 else:
32 - path = which('xscanimage')
33 + path = which('kooka')
34 if len(path) > 0:
35 - self.cmd_scan = 'xscanimage'
36 + self.cmd_scan = 'kooka'
37 + else:
38 + path = which('xscanimage')
39 + if len(path) > 0:
40 + self.cmd_scan = 'xscanimage'
41
42 # Photo Card
43 path = which('hp-unload')
44 diff --git a/ui5/ui_utils.pyscip-debian debian hplip 3.26.4+dfsg0-2 hplip/upstream/`ui5/ui_utils.py`: b/ui5/ui_utils.pyscip-debian debian hplip 3.26.4+dfsg0-2 hplip/upstream/`ui5/ui_utils.py`:
45 index caba339..865d6eb 100644
46 --- a/ui5/ui_utils.py
47 +++ b/ui5/ui_utils.py
48 @@ -205,7 +205,7 @@ class UserSettings(QSettings):
49 return ''
50
51 def loadDefaults(self):
52 - self.cmd_scan = self.__setup(['xsane -V %SANE_URI%', 'kooka', 'xscanimage'])
53 + self.cmd_scan = self.__setup(['simple-scan %SANE_URI%', 'xsane -V %SANE_URI%', 'kooka', 'xscanimage'])
54 self.cmd_fab = self.__setup(['hp-fab'])
55
56