Make profile dir hack Windows only #4168

This commit is contained in:
Nick Bolton 2015-03-04 11:51:56 +00:00
parent 719e8f6b56
commit a2524d9f57
1 changed files with 3 additions and 4 deletions

View File

@ -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
} }