Skip to content

Comments

fix(windows): 작업 표시줄 앱 이름 클릭 시 중복 인스턴스 실행 방지#42

Closed
lee-sihun wants to merge 1 commit intomasterfrom
claude/issue-41-20260218-1030
Closed

fix(windows): 작업 표시줄 앱 이름 클릭 시 중복 인스턴스 실행 방지#42
lee-sihun wants to merge 1 commit intomasterfrom
claude/issue-41-20260218-1030

Conversation

@lee-sihun
Copy link
Member

Fixes #41

문제

Windows 작업 표시줄 아이콘 우클릭 → 앱 이름(DM NOTE) 클릭 시 새 인스턴스가 생성똘는 문제를 수정합니다.

해결 방법

Windows 전역 Named Mutex를 사용하여 단일 인스턴스를 보장합니다.

Generated with Claude Code

Windows 전역 Named Mutex를 사용하여 단일 인스턴스를 보장합니다.
이미 실행 중인 경우 기존 창을 활성화하고 새 프로세스를 종료합니다.

- acquire_single_instance_lock(): Global\DmNote_SingleInstance 뮤텍스 생성
- focus_existing_window_and_exit(): FindWindowW로 기존 창 탐색 후 포그라운드 전환

windows 0.61.3 API 호환성에 맞게 구현 (bool, PCWSTR, HWND.0.is_null() 패턴)

Fixes #41

Co-authored-by: 이시훈 <lee-sihun@users.noreply.github.com>
@lee-sihun lee-sihun closed this Feb 18, 2026
@lee-sihun lee-sihun deleted the claude/issue-41-20260218-1030 branch February 19, 2026 07:27
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.

Windows Taskbar의 앱 이름 클릭 시 새 인스턴스가 실행되는 현상

1 participant