Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2022-10-29 19:29:50 +0300
committerJonathan White <support@dmapps.us>2022-10-29 21:33:36 +0300
commita5dee81e4525f169849fde08b9c26e27cbda2916 (patch)
tree257cac08b927ca1308a0bcd176879236d2c9d914 /src
parent4030dbc4b4062aa93b69ff280344128f8ea5e755 (diff)
Browser: second fix for linked socket path
* Fix #8702
Diffstat (limited to 'src')
-rw-r--r--src/browser/BrowserShared.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/browser/BrowserShared.cpp b/src/browser/BrowserShared.cpp
index f59782740..6fd2cf7ee 100644
--- a/src/browser/BrowserShared.cpp
+++ b/src/browser/BrowserShared.cpp
@@ -38,14 +38,15 @@ namespace BrowserShared
// Put the socket in a dedicated directory.
// This directory will be easily mountable by sandbox containers.
- QString subPath = path + "/app/org.keepassxc.KeePassXC/";
+ QString subPath = path + "/app/org.keepassxc.KeePassXC";
QDir().mkpath(subPath);
QString socketPath = subPath + serverName;
#ifndef KEEPASSXC_DIST_FLATPAK
- QFile::remove(socketPath);
// Create a symlink at the legacy location for backwards compatibility.
- QFile::link(socketPath, path + serverName);
+ const auto origSocketPath = path + serverName;
+ QFile::remove(origSocketPath);
+ QFile::link(socketPath, origSocketPath);
#endif
return socketPath;