Skip to content

Commit

Permalink
Fix browser socket path for proxy and app
Browse files Browse the repository at this point in the history
* Prefer hardcoded string, we never want this server name to change due to arbitrary reasons.
  • Loading branch information
droidmonkey committed May 16, 2020
1 parent 689a85a commit 2237cf0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/browser/BrowserShared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2237cf0

Please sign in to comment.