Explorar o código

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
Marek Marczykowski-Górecki %!s(int64=8) %!d(string=hai) anos
pai
achega
dfd355fe71
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      qubesmanager/main.py

+ 3 - 2
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)