[PR #46] fix: stop macOS login helper from hiding a running app #47

Open
opened 2026-10-13 21:08:54 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-apple/pull/46
Author: @glorysaber
Created: 9/2/2026
Status: 🔄 Open

Base: master ← Head: fix/macos-login-helper-background


📝 Commits (1)

  • 04852ce fix: stop macOS login helper from hiding a running app

📊 Changes

2 files changed (+23 additions, -3 deletions)

View changed files

📝 Sources/WireGuardApp/UI/macOS/AppDelegate.swift (+7 -0)
📝 Sources/WireGuardApp/UI/macOS/LoginItemHelper/main.m (+16 -3)

📄 Description

SMLoginItemSetEnabled launches the helper immediately, including while the main app is already running. Skip that re-open so hides=YES cannot shove the UI into the background, and wait on the launch condition under a lock with a timeout so a missed wakeup cannot leave the helper stuck.

Also show Manage Tunnels on reopen when no window is visible.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-apple/pull/46 **Author:** [@glorysaber](https://github.com/glorysaber) **Created:** 9/2/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix/macos-login-helper-background` --- ### 📝 Commits (1) - [`04852ce`](https://github.com/amnezia-vpn/amneziawg-apple/commit/04852cee41513c43ebbb90e3d8148a6512690ec7) fix: stop macOS login helper from hiding a running app ### 📊 Changes **2 files changed** (+23 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Sources/WireGuardApp/UI/macOS/AppDelegate.swift` (+7 -0) 📝 `Sources/WireGuardApp/UI/macOS/LoginItemHelper/main.m` (+16 -3) </details> ### 📄 Description SMLoginItemSetEnabled launches the helper immediately, including while the main app is already running. Skip that re-open so hides=YES cannot shove the UI into the background, and wait on the launch condition under a lock with a timeout so a missed wakeup cannot leave the helper stuck. Also show Manage Tunnels on reopen when no window is visible. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-apple#47
No description provided.