Bug 43589

Summary: Падение приложения при нажатии на Подключить как считыватель
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: token-managerAssignee: Andrey Cherepanov <cas>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: cas
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2022-08-23 12:14:27 MSK
Версия пакета:
token-manager-0.12-alt9

Предварительное условие: подключить к системе токен (например, Рутокен ЭЦП)

Шаги воспроизведения:
Запустить приложение, в списке хранилищ выбрать токен и нажать кнопку Подключить как считыватель

Получаемый результат:
Приложение падает, в терминале следующая ошибка:
Traceback (most recent call last):
  File "/usr/bin/token-manager.py", line 786, in set_reader
    if set_as_reader(self.token):
  File "/usr/bin/token-manager.py", line 431, in set_as_reader
    cpconfig = subprocess.Popen(['/usr/bin/cpconfig-%s' % arch, '-hardware', 'reader', '-add', token],
  File "/usr/lib64/python3.10/subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.10/subprocess.py", line 1845, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Нет такого файла или каталога: '/usr/bin/cpconfig-amd64'
/usr/bin/token-manager: строка 3:  4714 Аварийный останов         python3 /usr/bin/token-manager.py $@

В самом пакете есть только файл cpconfig-ia32, а cpconfig-amd64 нет, хотя в апстриме есть https://github.com/bmakarenko/token-manager