mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
Lock on DATADIR, not app dir
This commit is contained in:
parent
1418306d6b
commit
a4df3c644b
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user