mirror of
https://github.com/debauchee/barrier.git
synced 2026-06-27 23:46:16 +08:00
Updating installed dir for Linux and MacOS #4696
This commit is contained in:
@@ -35,11 +35,12 @@ static const char kInstallerPluginLocation[] = "Plugins";
|
|||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
static const char kMacPluginPrefix[] = "lib";
|
static const char kMacPluginPrefix[] = "lib";
|
||||||
static const char kMacPluginExt[] = ".dylib";
|
static const char kMacPluginExt[] = ".dylib";
|
||||||
static const char kInstallerPluginLocation[] = "plugins";
|
static const char kInstallerPluginLocation[] = "plugins"; // TODO: Fix for mac
|
||||||
#else
|
#else
|
||||||
static const char kLinuxPluginPrefix[] = "lib";
|
static const char kLinuxPluginPrefix[] = "lib";
|
||||||
static const char kLinuxPluginExt[] = ".so";
|
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
|
#endif
|
||||||
|
|
||||||
QString Plugin::getOsSpecificExt()
|
QString Plugin::getOsSpecificExt()
|
||||||
|
|||||||
@@ -92,9 +92,9 @@ std::string
|
|||||||
ArchFileUnix::getInstalledDirectory()
|
ArchFileUnix::getInstalledDirectory()
|
||||||
{
|
{
|
||||||
#if WINAPI_XWINDOWS
|
#if WINAPI_XWINDOWS
|
||||||
return "/bin";
|
return "/usr/bin";
|
||||||
#else
|
#else
|
||||||
return "";
|
return "/Applications/Synergy.app/Contents/MacOS/Synergy";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user