From b65f7f78951450998bc4a85f60ce1350c2ed2a12 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 24 Jan 2014 23:15:14 -0800 Subject: Qt GUI now builds and runs on Windows. On Windows it can (via its manifest) automatically request admin rights on launch, which plugs it nicely into Windows' admin rights system without requiring file copies and such. --- ZeroTierUI/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ZeroTierUI/main.cpp') diff --git a/ZeroTierUI/main.cpp b/ZeroTierUI/main.cpp index 3255ec9f..5814849c 100644 --- a/ZeroTierUI/main.cpp +++ b/ZeroTierUI/main.cpp @@ -59,6 +59,8 @@ int main(int argc, char *argv[]) #ifdef __APPLE__ { + // Put QSettings here because this is one of the writable directories allowed + // in Apple's app store sandbox specs. We might end up in app store someday. QString zt1AppSupport(QDir::homePath() + "/Library/Application Support/ZeroTier/One"); QDir::root().mkpath(zt1AppSupport); settings = new QSettings(zt1AppSupport + "/ui.ini",QSettings::IniFormat); -- cgit v1.2.3