From 89280d02835d70262c08e23d34c1116a6da2e0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 5 Feb 2014 04:32:42 +0100 Subject: [PATCH] backups: start dom0 file browser with '/' as default Do not suggest home directory as right place for backups. If the user chosen some block device, it will be used as default. --- qubesmanager/backup_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qubesmanager/backup_utils.py b/qubesmanager/backup_utils.py index 9e968c6..8122d98 100644 --- a/qubesmanager/backup_utils.py +++ b/qubesmanager/backup_utils.py @@ -235,7 +235,9 @@ def select_path_button_clicked(dialog, select_file = False): elif dialog.dev_mount_path != None: new_path = file_dialog_function(dialog, "Select backup location.", dialog.dev_mount_path) else: - new_path = file_dialog_function(dialog, "Select backup location.", backup_location) + new_path = file_dialog_function(dialog, "Select backup location.", + backup_location if backup_location + else '/') if new_path != None: new_path = str(new_path)