Lock on DATADIR, not app dir
This commit is contained in:
parent
1418306d6b
commit
a4df3c644b
|
@ -66,7 +66,7 @@ proc mainProc() =
|
||||||
"/../resources.rcc"
|
"/../resources.rcc"
|
||||||
QResource.registerResource(app.applicationDirPath & resources)
|
QResource.registerResource(app.applicationDirPath & resources)
|
||||||
|
|
||||||
let singleInstance = newSingleInstance($toMD5(getAppDir()))
|
let singleInstance = newSingleInstance($toMD5(DATADIR))
|
||||||
defer: singleInstance.delete()
|
defer: singleInstance.delete()
|
||||||
if singleInstance.secondInstance():
|
if singleInstance.secondInstance():
|
||||||
info "Terminating the app as the second instance"
|
info "Terminating the app as the second instance"
|
||||||
|
|
Loading…
Reference in New Issue