mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-27 14:57:09 -05:00
Fix deleting existing socket file before making a new symbolic link
This commit is contained in:
parent
91fafccb0a
commit
69f05d4c26
@ -43,6 +43,7 @@ namespace BrowserShared
|
|||||||
|
|
||||||
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);
|
QFile::link(socketPath, path + serverName);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user