Fix browser socket path for proxy and app

* Prefer hardcoded string, we never want this server name to change due to arbitrary reasons.
This commit is contained in:
Jonathan White 2020-05-15 14:17:58 -04:00
parent 689a85a071
commit 2237cf0188

View File

@ -27,8 +27,7 @@ namespace BrowserShared
{
QString localServerPath()
{
const auto appName = qApp->property("KPXC_QUALIFIED_APPNAME").toString();
const auto serverName = QStringLiteral("/%1.BrowserServer").arg(appName);
const auto serverName = QStringLiteral("/org.keepassxc.KeePassXC.BrowserServer");
#if defined(KEEPASSXC_DIST_SNAP)
return QProcessEnvironment::systemEnvironment().value("SNAP_USER_COMMON") + serverName;
#elif defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)