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.

This commit is contained in:
Adam Ierymenko 2014-01-24 23:15:14 -08:00
parent 434ce96f2c
commit b65f7f7895
6 changed files with 123 additions and 142 deletions

View file

@ -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);