Стенд: ALT KWorkstation 11.4, обновлённый до Sisyphus (x86_64) Версия пакета: control++-0.24.2-alt1 (также python3-module-control++gui-0.2.0-alt2) Шаги воспроизведения: 1. Установить пакет control++ на свежую систему (ни разу не выполняя control++ от root). 2. От обычного пользователя выполнить: $ control++ --list Ожидаемый результат: Команда выполняется успешно (код возврата 0), выводится список режимов. State-файл должен создаваться при установке пакета, либо его отсутствие не должно быть фатальной ошибкой для read-only операций. Реальный результат: $ control++ --list Reading internal conf file "/var/lib/control++/.current_mode.conf"...[ERROR] - [ERROR: Can't create config file '/var/lib/control++/.current_mode.conf'] $ echo $? 1 Дополнительно: Пакет поставляет только каталог /var/lib/control++/ (root:root 0755); state-файл .current_mode.conf создаётся при первом запуске. Непривилегированный пользователь не может его создать, что обрабатывается как фатальная ошибка даже для read-only операций (--list, --status). Побочный эффект: не запускается control++gui — при первом запуске от пользователя показывается фатальный диалог «Can't get a list of control++ modes: Command ['control++', '--list'] returned non-zero exit status 1» и приложение завершается.
Сейчас готовлю новую версию с мелкими исправлениями, учту в ней и это, спасибо.
control++-0.25.0-alt1 -> sisyphus: Fri Nov 27 2026 Alexey Appolonov <alexey@altlinux> 0.25.0-alt1 - Fixes: + OVE-20261127-0012 Shell special symbols were not filtered out of mode names + OVE-20261127-0013 Missing validation of mode names obtained from the file system + OVE-20261127-0014 Script path reached a shell and its exit status was misread + OVE-20261127-0015 Race between checking a script and running it - Various minor bug fixes, including a few memory leaks; - The mode check during a micro reset now works properly; - Scripts without a shebang line are no longer run by the starter unit; - The ulimits unit is improved (in particular, the precedence of its ulimits files is now guaranteed in all situations, while a specially crafted catalog could previously break the hierarchy in which mode-specific files come first); - The mode status is now available before the first run by root (Closes: #61317).