Updating installed dir for Linux and MacOS #4696

This commit is contained in:
Adam Potolsky 2015-06-02 14:28:20 -07:00
parent d215c49966
commit 0061969cf2
2 changed files with 5 additions and 4 deletions

View File

@ -35,11 +35,12 @@ static const char kInstallerPluginLocation[] = "Plugins";
#elif defined(Q_OS_MAC)
static const char kMacPluginPrefix[] = "lib";
static const char kMacPluginExt[] = ".dylib";
static const char kInstallerPluginLocation[] = "plugins";
static const char kInstallerPluginLocation[] = "plugins"; // TODO: Fix for mac
#else
static const char kLinuxPluginPrefix[] = "lib";
static const char kLinuxPluginExt[] = ".so";
static const char kInstallerPluginLocation[] = "plugins";
// /usr/bin becomes /usr/bin/../lib/syn...
static const char kInstallerPluginLocation[] = "../lib/synergy/plugins";
#endif
QString Plugin::getOsSpecificExt()

View File

@ -92,9 +92,9 @@ std::string
ArchFileUnix::getInstalledDirectory()
{
#if WINAPI_XWINDOWS
return "/bin";
return "/usr/bin";
#else
return "";
return "/Applications/Synergy.app/Contents/MacOS/Synergy";
#endif
}