mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-03 01:50:10 -05:00
parent
4030dbc4b4
commit
a5dee81e45
@ -38,14 +38,15 @@ namespace BrowserShared
|
|||||||
|
|
||||||
// Put the socket in a dedicated directory.
|
// Put the socket in a dedicated directory.
|
||||||
// This directory will be easily mountable by sandbox containers.
|
// 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);
|
QDir().mkpath(subPath);
|
||||||
|
|
||||||
QString socketPath = subPath + serverName;
|
QString socketPath = subPath + serverName;
|
||||||
#ifndef KEEPASSXC_DIST_FLATPAK
|
#ifndef KEEPASSXC_DIST_FLATPAK
|
||||||
QFile::remove(socketPath);
|
|
||||||
// Create a symlink at the legacy location for backwards compatibility.
|
// 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
|
#endif
|
||||||
|
|
||||||
return socketPath;
|
return socketPath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user