Fix deleting existing socket file before making a new symbolic link

This commit is contained in:
varjolintu 2022-10-25 15:59:15 +03:00 committed by Jonathan White
parent 91fafccb0a
commit 69f05d4c26

View File

@ -43,6 +43,7 @@ namespace BrowserShared
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);
#endif