Lock on DATADIR, not app dir

This commit is contained in:
Andrei Smirnov 2021-09-07 19:34:27 +03:00 committed by Iuri Matias
parent 1418306d6b
commit a4df3c644b
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ proc mainProc() =
"/../resources.rcc"
QResource.registerResource(app.applicationDirPath & resources)
let singleInstance = newSingleInstance($toMD5(getAppDir()))
let singleInstance = newSingleInstance($toMD5(DATADIR))
defer: singleInstance.delete()
if singleInstance.secondInstance():
info "Terminating the app as the second instance"