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
This commit is contained in:
Marek Marczykowski-Górecki 2015-09-26 15:14:27 +02:00
parent 3ba1a990df
commit dfd355fe71
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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)