Make profile dir hack Windows only #4168
This commit is contained in:
parent
719e8f6b56
commit
a2524d9f57
|
@ -450,7 +450,9 @@ void MainWindow::startSynergy()
|
||||||
args << "--enable-crypto";
|
args << "--enable-crypto";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
args << "--profile-dir" << getProfileDirectoryForArg();
|
args << "--profile-dir" << getProfileDirectoryForArg();
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((synergyType() == synergyClient && !clientArgs(args, app))
|
if ((synergyType() == synergyClient && !clientArgs(args, app))
|
||||||
|| (synergyType() == synergyServer && !serverArgs(args, app)))
|
|| (synergyType() == synergyServer && !serverArgs(args, app)))
|
||||||
|
@ -1234,10 +1236,7 @@ QString MainWindow::getProfileDirectory()
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// HACK: this seems hacky, since we're using a hidden folder inside the
|
return "";
|
||||||
// user's home dir to store plugins, etc... but we call it profile dir?
|
|
||||||
return QDesktopServices::storageLocation(
|
|
||||||
QDesktopServices::HomeLocation);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue