summaryrefslogtreecommitdiff
path: root/ZeroTierUI
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-16 13:53:31 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-16 13:53:31 -0800
commit9df7f65dd591c8ee641f9bd66977b92456be9ed9 (patch)
tree6ed2ef5bd9e77d8761e88c0bb65ed12a8c16167f /ZeroTierUI
parente23be8c91a4b8047301fc20bb74c767b86bd00d2 (diff)
downloadinfinitytier-9df7f65dd591c8ee641f9bd66977b92456be9ed9.tar.gz
infinitytier-9df7f65dd591c8ee641f9bd66977b92456be9ed9.zip
Mac installation, and dump pre10.8 stuff because it turns out that 10.6 loads the existing kext fine.
Diffstat (limited to 'ZeroTierUI')
-rw-r--r--ZeroTierUI/installdialog.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ZeroTierUI/installdialog.cpp b/ZeroTierUI/installdialog.cpp
index 14ad5b6a..29bc0ec7 100644
--- a/ZeroTierUI/installdialog.cpp
+++ b/ZeroTierUI/installdialog.cpp
@@ -161,6 +161,14 @@ void InstallDialog::on_networkReply(QNetworkReply *reply)
unlink(tmpPath.c_str());
unlink(instPath.c_str());
+ // Restart the binary with whatever updates may have occurred
+ std::string appPath(QCoreApplication::applicationFilePath().toStdString());
+ execl(appPath.c_str(),appPath.c_str(),(const char *)0);
+
+ // We only make it here if execl() fails
+ QMessageBox::critical(this,"Re-Launch Failed","An error occurred re-launching ZeroTier One.app. Try launching it manually.",QMessageBox::Ok,QMessageBox::NoButton);
+ QApplication::exit(1);
+
return;
}
#endif