d551bdc3fa
Prior to this commit, there have been occasional issues with the usage of the Qubes Manager's VM restart button where the restart procedure is interrupted due to an exception thrown after the VM in question is shut down. The exception has the following backtrace: ---- line: assert not vm.is_running() func: start_vm line no.: 1198 file: /usr/lib64/python2.7/site-packages/qubesmanager/main.py ---- line: self.caller.start_vm(vm) func: check_if_vm_has_shutdown line no.: 308 file: /usr/lib64/python2.7/site-packages/qubesmanager/main.py Upon investigation, the root cause of the issue appears to be inconsistent information provided by Xen regarding a recently-shut-down VM's start-up timestamp and its state (i.e., running or shut down). In some cases Xen would report that the VM is running whereas the start-up timestamp would be returned as None, due to unknown reasons. This inconsistency would then cause the code modified by this commit to call the Qubes Manager's "start_vm" method, which would attempt to assert that a VM is shut down, which would raise the aforementioned exception. This commit aims to resolve this issue by checking whether the VM has fully shut down according to Xen and by calling "start_vm" only if the VM has fully shut down. This commit also slightly refactors the affected code. Fixes: QubesOS/qubes-issues#2438 |
||
---|---|---|
.tx | ||
i18n | ||
icons | ||
qubesmanager | ||
rpm_spec | ||
.gitignore | ||
.travis.yml | ||
about.ui | ||
backupdlg.ui | ||
build-deps.list | ||
globalsettingsdlg.ui | ||
informationnotes.ui | ||
logdlg.ui | ||
mainwindow.ui | ||
Makefile | ||
Makefile.builder | ||
multiselectwidget.ui | ||
networknotes.ui | ||
newappvmdlg.ui | ||
newfwruledlg.ui | ||
org.qubesos.QubesManager.conf | ||
org.qubesos.QubesManager.xml | ||
qubes-manager | ||
qubes-manager.desktop | ||
qubes-vm-settings | ||
qubesmanager.pro | ||
README.md | ||
releasenotes.ui | ||
resources.qrc | ||
restoredlg.ui | ||
settingsdlg.ui | ||
version |
Qubes Manager
Managing translations
Adding new language
- Add
i18n/qubesmanager_LANGUAGECODE.ts
(replaceLANGUAGECODE
with actual code, for examplees
) toqubesmanager.pro
-TRANSLATIONS
setting. - Run
make res update_ts
Regenerating translation source files (.ts
)
make res update_ts
This will keep translated strings, but will add new ones.
Updating translations
Commit updated .ts
files into i18n
directory.