From d9f761a8a31c211687b2860b4a223b13fa44b398 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sun, 8 Jan 2012 18:57:56 -0500 Subject: [PATCH] ui-macos: tell the user that we need to reboot on MacOS Lion. --- ui-macos/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui-macos/main.py b/ui-macos/main.py index 7915e91..fc67a34 100644 --- a/ui-macos/main.py +++ b/ui-macos/main.py @@ -78,6 +78,11 @@ class Runner: if pid == self.pid: if os.WIFEXITED(code): self.rv = os.WEXITSTATUS(code) + if self.rv == 111: + NSRunAlertPanel('Sshuttle', + 'Please restart your computer to finish ' + 'installing Sshuttle.', + 'Restart Later', None, None) else: self.rv = -os.WSTOPSIG(code) self.serverobj.setConnected_(False)