Skip to content

test(install): keep the tests' macOS apps out of Launch Services - #416

Merged
AlphaJack merged 1 commit into
mainfrom
fix/tests-skip-launch-services
Nov 22, 2026
Merged

AlphaJack merged 1 commit into
mainfrom
fix/tests-skip-launch-services

Conversation

@AlphaJack

@AlphaJack AlphaJack commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

The install tests write Rusticlone.app in a sandbox and registered it with Launch Services. Each copy has the real app's bundle ID, which macOS ties to the menu bar, Login Items and launch checks. A test run could hide the installed app's tray icon or get it killed for an invalid signature, and left hundreds of stale entries behind.

The app is now registered and unregistered only as root or when HOME is the user's own home in the user database. The tests point HOME at the sandbox.

install_loads_a_login_agent checks that the sandbox app is not registered after install, in place of the check after uninstall that #414 added.

@AlphaJack
AlphaJack force-pushed the fix/tests-skip-launch-services branch from b43d608 to 714fcf2 Compare November 22, 2026 19:04
The install tests write `Rusticlone.app` in a sandbox and registered it with Launch Services. Each copy has the real app's bundle ID, which macOS ties to the menu bar, Login Items and launch checks. A test run could hide the installed app's tray icon or get it killed for an invalid signature, and left hundreds of stale entries behind.

The app is now registered and unregistered only as root or when `HOME` is the user's own home in the user database. The tests point `HOME` at the sandbox.
@AlphaJack
AlphaJack force-pushed the fix/tests-skip-launch-services branch from 714fcf2 to 6019674 Compare November 22, 2026 19:05
@AlphaJack
AlphaJack enabled auto-merge (squash) November 22, 2026 19:07
@AlphaJack
AlphaJack merged commit 56a4529 into main Nov 22, 2026
31 checks passed
@AlphaJack
AlphaJack deleted the fix/tests-skip-launch-services branch November 22, 2026 19:09
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