Репозитории ALT
S: | 3.23.8-alt1 |
5.1: | 3.11.5-alt0.M51.1 |
4.1: | 2.8.10-alt2.M41.1 |
4.0: | 2.7.12-alt2.M40.1 |
+backports: | 2.8.10-alt2.M40.1 |
3.0: | |
+backports: | 1.6.6a-alt0.M30.4.1 |
Группа :: Издательство
Пакет: hplip
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: simple-scan-as-default.patch
Скачать
Скачать
From 81992bd78888e2aa34dd60918a75fb8579b16aad Mon Sep 17 00:00:00 2001
From: Till Kamppeter <till.kamppeter@gmail.com>
Date: Fri, 22 Jul 2016 09:32:55 +0200
Subject: Make simple-scan the default scanning frontend
LP: #539015
Patch-Name: simple-scan-as-default.patch
---
base/utils.py | 17 ++++++++++-------
ui5/ui_utils.py | 2 +-
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/base/utils.py b/base/utils.py
index 26c2d9f89..61e7cf810 100644
--- a/base/utils.py
+++ b/base/utils.py
@@ -565,18 +565,21 @@ class UserSettings(object): # Note: Deprecated after 2.8.8 in Qt4 (see ui4/ui_ut
# Scan
self.cmd_scan = ''
- path = which('xsane')
-
+ path = which('simple-scan')
if len(path) > 0:
- self.cmd_scan = 'xsane -V %SANE_URI%'
+ self.cmd_scan = 'simple-scan %SANE_URI%'
else:
- path = which('kooka')
+ path = which('xsane')
if len(path) > 0:
- self.cmd_scan = 'kooka'
+ self.cmd_scan = 'xsane -V %SANE_URI%'
else:
- path = which('xscanimage')
+ path = which('kooka')
if len(path) > 0:
- self.cmd_scan = 'xscanimage'
+ self.cmd_scan = 'kooka'
+ else:
+ path = which('xscanimage')
+ if len(path) > 0:
+ self.cmd_scan = 'xscanimage'
# Photo Card
path = which('hp-unload')
diff --git a/ui5/ui_utils.py b/ui5/ui_utils.py
index caba33910..865d6eb2b 100644
--- a/ui5/ui_utils.py
+++ b/ui5/ui_utils.py
@@ -205,7 +205,7 @@ class UserSettings(QSettings):
return ''
def loadDefaults(self):
- self.cmd_scan = self.__setup(['xsane -V %SANE_URI%', 'kooka', 'xscanimage'])
+ self.cmd_scan = self.__setup(['simple-scan %SANE_URI%', 'xsane -V %SANE_URI%', 'kooka', 'xscanimage'])
self.cmd_fab = self.__setup(['hp-fab'])