summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2012-01-08 18:57:56 -0500
committerAvery Pennarun <apenwarr@gmail.com>2012-01-08 19:01:18 -0500
commitd9f761a8a31c211687b2860b4a223b13fa44b398 (patch)
treefe923292e34a10e559be0a7c3fe6b912409d90e6
parentbd20841782881684ed38b6538085714f757f2bc0 (diff)
ui-macos: tell the user that we need to reboot on MacOS Lion.
-rw-r--r--ui-macos/main.py5
1 files changed, 5 insertions, 0 deletions
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)