Desktop Single Instance Before Di

Order a desktop app's startup so the single-instance guard runs before the dependency container and before anything opens on-disk state. Covers forwarding a second launch's arguments to the running instance and exiting, bridging a restore request from outside the UI framework into the live window, and the platforms where a second launch never produces a second process at all. Use when launching the app a second time crashes or corrupts settings, when a link opened while the app is running does nothing, or when the second window steals a file the first one owns.

maxrave-dev 75a5f7a 6.6 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/desktop-single-instance-before-di commit 75a5f7ae89

Frequently asked questions

npx skillmds@latest add maxrave-dev/desktop-single-instance-before-di