From dfd355fe71c3506d87b5ab1d1a4a8dc14ea367c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 26 Sep 2015 15:14:27 +0200 Subject: [PATCH] Give the user chance to read final meesages after installing updates (#982) xterm closes itself immediatelly when the specified command ends, so wait for user reaction to give a chance to read the message (potentially some error info). Also add some more meaningful window title. QubesOS/qubes-issues#982 --- qubesmanager/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 44f146a..6b261f5 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -1378,8 +1378,9 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow): "yum update; " \ "else " \ "apt-get update && apt-get -V dist-upgrade;" \ - "fi" - vm.run("xterm -e sudo sh -c '{}';" + "fi;" \ + "echo Done. Press Enter to exit.; read x" + vm.run("xterm -title update -e sudo sh -c '{}';" "sudo service qubes-update-check start". format(update_command), **vm_run_common_args)