Skip to content

Commit 575094a

Browse files
committed
Select "sys-usb" as the default backup location
In case there is no an existing backup profile, select sys-usb as the default target. In case there is no `sys-usb` (e.g. on live Qubes scenario), still revert to dom0 If dom0 is included in backup and target is user home dir in dom0, another patch to core shows an error message. Cover it as well resolves: QubesOS/qubes-issues#10127 depends: QubesOS/qubes-core-admin#731
1 parent 064e343 commit 575094a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

qubesmanager/backup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ def load_settings(self):
211211
try:
212212
profile_data = backup_utils.load_backup_profile()
213213
except FileNotFoundError:
214+
dest_vm_idx = self.appvm_combobox.findText("sys-usb")
215+
if dest_vm_idx > -1:
216+
self.appvm_combobox.setCurrentIndex(dest_vm_idx)
214217
return
215218
except exc.QubesException:
216219
QtWidgets.QMessageBox.information(
@@ -405,6 +408,8 @@ def current_page_changed(self, page_id): # pylint: disable=unused-argument
405408
backup_summary = self.qubes_app.qubesd_call(
406409
'dom0', 'admin.backup.Info',
407410
backup_utils.get_profile_name(True)).decode()
411+
except exc.QubesException as e:
412+
backup_summary = str(e)
408413
except exc.QubesDaemonAccessError:
409414
backup_summary = "Failed to get backup summary: " \
410415
"insufficient permissions"

0 commit comments

Comments
 (0)