mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #1731] Enabling Start at Login doesn't add it to system Login Items #960
Labels
No labels
Status: Abandoned
arm64
beta
beta
bug
done
duplicate
enhancement
feedback needed from reporter
in progress
invalid
investigating
known Issue
monitor Issue
pull-request
translation
unable to reproduce
unreleased
x86
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/MonitorControl#960
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @davsinghm on GitHub (Feb 24, 2025).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/1731
Before opening the issue, have you...?
Describe the bug
Testing on macOS Sequoia, enabling or disabling Start at Login setting in the app doesn't add the app to the Login Items in System Preferences. Instead it adds itself to 'Allow in the Background' section.
That might enable to it be launched at login, but not ideal. I had to manually add it to the Open at Login section, where it gracefully starts automatically.
I understand there should be an API call that let the app add itself to that list as I've seen other decent app do it.
Using that standard way would also avoid the notification from the system about "Background Items Added" / "App is allowed to be run in the background even when it's not open", which requires users attention from security or performance/battery standpoint.
Steps to reproduce
In app settings, under General, simply enabling 'Start at Login' on fresh install.
It will also make the 'Background item added' notification from system.
Expected behavior
In System Preferences, app should appear in Open at Login items instead of Allow in the Background items.
Anything else?
No response
Environment Information (please complete the following information)
@davsinghm commented on GitHub (Feb 24, 2025):
Looks like it's using SMLoginItemSetEnabled here which was deprecated.
There's new SMAppService.
@waydabber commented on GitHub (Feb 24, 2025):
Yes, there is a proper API since Ventura. Since the app needs to support all the way back to Catalina and the old method works fine (+ as you say you can simply manually add the app to Login Items) I don't think I'll update the current version of MC to the new method.
If you want an up-to-date solution, you might want to consider using BetterDisplay which uses SMAppService.