Skip to content

Resolve app path by bundle id for localized installs (fixes #22) - #27

Open
official-Cheongae wants to merge 1 commit into
silver-flight-group:mainfrom
official-Cheongae:fix/localized-app-path
Open

Resolve app path by bundle id for localized installs (fixes #22)#27
official-Cheongae wants to merge 1 commit into
silver-flight-group:mainfrom
official-Cheongae:fix/localized-app-path

Conversation

@official-Cheongae

Copy link
Copy Markdown

Problem

AppLifecycle.appPath and StatusCommand hardcoded /Applications/KakaoTalk.app. On a Korean install the bundle is 카카오톡.app, so status reported App installed: No and launch / AX automation could not locate the app (issue #22). Any localized install name hits the same wall.

Fix

  • Resolve the path at runtime via NSWorkspace.shared.urlForApplication(withBundleIdentifier:), keeping the hardcoded path as a fallback.
  • StatusCommand now reuses AppLifecycle.appPath instead of its own literal.

Bundle id (com.kakao.KakaoTalkMac) is stable across locales, so this works regardless of the localized .app display name.

Verification

  • Release build clean on macOS 26 / Swift 6.3.3.
  • Resolves to /Applications/카카오톡.app on a Korean install; status now reports the app correctly.

AppLifecycle.appPath and StatusCommand hardcoded
"/Applications/KakaoTalk.app". On a Korean install the app bundle is
"카카오톡.app", so status reported "App installed: No" and launch/
automation could not find the app (issue silver-flight-group#22).

Resolve the path at runtime via
NSWorkspace.urlForApplication(withBundleIdentifier:), falling back to
the previous hardcoded path. StatusCommand now reuses AppLifecycle.appPath.

Verified: release build clean on macOS 26 / Swift 6.3; resolves to
/Applications/카카오톡.app on a Korean install.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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