Skip to content

feat: prevent multiple instances via named mutex#35

Merged
gtt116 merged 2 commits into
mainfrom
feat/single-instance
Jun 19, 2026
Merged

feat: prevent multiple instances via named mutex#35
gtt116 merged 2 commits into
mainfrom
feat/single-instance

Conversation

@gtt116

@gtt116 gtt116 commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Prevent multiple Enikk instances from running simultaneously using a Windows named mutex.

Changes

  • __main__.py: Add _ensure_single_instance() at startup
    • Creates a Global\Enikk_Single_Instance named mutex
    • If another instance exists: finds the "Enikk Dashboard" window, restores it (from tray/minimized), brings to foreground, then exits
    • Mutex is held for the process lifetime and auto-released on exit/crash

gtt116 added 2 commits June 19, 2026 13:59
Create a Global named mutex on startup. If another instance is already
running, restore its window to foreground and exit.
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

✅ Build succeeded! Artifact: enikk-dev-866592f

📥 Download artifact

@gtt116 gtt116 merged commit a516549 into main Jun 19, 2026
3 checks passed
@gtt116 gtt116 deleted the feat/single-instance branch June 19, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant