mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-05 01:15:33 -05:00
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:
parent
689a85a071
commit
2237cf0188
@ -27,8 +27,7 @@ namespace BrowserShared
|
|||||||
{
|
{
|
||||||
QString localServerPath()
|
QString localServerPath()
|
||||||
{
|
{
|
||||||
const auto appName = qApp->property("KPXC_QUALIFIED_APPNAME").toString();
|
const auto serverName = QStringLiteral("/org.keepassxc.KeePassXC.BrowserServer");
|
||||||
const auto serverName = QStringLiteral("/%1.BrowserServer").arg(appName);
|
|
||||||
#if defined(KEEPASSXC_DIST_SNAP)
|
#if defined(KEEPASSXC_DIST_SNAP)
|
||||||
return QProcessEnvironment::systemEnvironment().value("SNAP_USER_COMMON") + serverName;
|
return QProcessEnvironment::systemEnvironment().value("SNAP_USER_COMMON") + serverName;
|
||||||
#elif defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
|
#elif defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user