Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refuses to be added to Login Items #165

Closed
rangedsp opened this issue Apr 17, 2023 · 18 comments
Closed

Refuses to be added to Login Items #165

rangedsp opened this issue Apr 17, 2023 · 18 comments
Labels

Comments

@rangedsp
Copy link

Model Name: MacBook Pro
Model Identifier: Mac14,6
Chip: Apple M2 Max
System Version: macOS 13.3.1 (22E261)

Repro steps:

  1. Download fresh copy of scroll-reverser 1.8.2
  2. Unzip
  3. Drag into Applications
  4. Launch app
  5. Goto Login Items
  6. Under "Open at Login", hit "+"
  7. Select "Scroll Reverser", hit "Open"
  8. Observe that it doesn't get added to the list

Very weird, I've never had an issue with this, worked on an Intel mac (running Monteray)

@paultheman
Copy link

I have the same issue on macOS 13.3.1.

@pilotmoon
Copy link
Owner

If this is happening, try adding it manually to the Login items list instead. Also ensure that it is in the Applications folder, and not in any other location. And that there are not any duplicate copies of the app.

@paultheman
Copy link

I have tried to add it manually but unfortunately it does not work.
After clicking '+' and selecting the App from the Applications folder the 'Open at login' list remains unchanged. :(

@pilotmoon
Copy link
Owner

pilotmoon commented Apr 20, 2023

This would appear to be a macOS issue. Make sure to remove any instances of Scroll Reverser from the login times list before adding it back in. Also, do ensure app is in /Applications folder. Keeping it elsewhere is known to be problematic.

@ZyntaaX
Copy link

ZyntaaX commented Apr 26, 2023

This is a problem for me as well on the M2 Pro. The app is in the /Applications folder, no other location. When i press the "+" button and select the application, nothing happens. No errors, nothing, it just won't add to the login items list.

Any fix in sight?

Edit: I'm running Ventura 13.3.1

@pilotmoon
Copy link
Owner

pilotmoon commented Apr 26, 2023

The login items list is part of the macOS settings. I can't fix that. This is a bug you need to report to Apple.

@rangedsp
Copy link
Author

@pilotmoon I am unsure about other, but my repro steps is specifically about adding Scroll Reverser to the login items manually.

Looking at the function you are using to register on launch, I think I've figured out the reason: SMLoginItemSetEnabled has been deprecated as of Ventura, as per Apple docs.

My current workaround is to create an automator job that launches Scroll Reverser, and add that job to login items instead.

@pilotmoon
Copy link
Owner

Ah, I see. SMLoginItemSetEnabled still works for me, on Ventura, even though deprecated. It adds the app to the "Allow in the Background" section below the login items list. Perhaps the settings dialog is programmed not to add apps to the manual login items list that are already in the allow in the background section. Was the normal mechanism not working for you?

@rangedsp
Copy link
Author

@pilotmoon no, the normal mechanism didn't work, that's why I tried to add the app manually.

Perhaps the settings dialog is programmed not to add apps to the manual login items list that are already in the allow in the background section

So this is really weird, Zoom, a couple of Logitech apps, and MS Teams shows up in the 'allow in background' section, and I was able to manually add it to the 'open at login' section. BUT, DisplayLink Manager, Hidden Bar, Facebook Messenger etc can't be added just like Scroll Reverser.

I am wondering if it's to do with calling the deprecated API that causes this issue?
(if I have some time to learn mac development I might take a crack at this)

@theotherlinh
Copy link

Dunno if it helps any debugging, but I'm having this issue as well. In trying to reinstall and try from scratch, I also noticed Scroll Reverser could not be removed from the "Allow in background" list. I checked /Library/LaunchAgents and LauchDaemons as well as ~/Library/Launch* and nothing was listed.

Also just using Automator as a workaround.

@com314159
Copy link

me too, I use Automator to start scroll reverser now

@londbell
Copy link

londbell commented Oct 8, 2023

same issue,ventura(m1 pro)

@TyJaYo
Copy link

TyJaYo commented Nov 7, 2023

I was having this issue with a different application (Magnet) and was able to resolve it by dragging the app to the Dock, then control-clicking it and selecting "Options" > "Open at Login". The app now appears on the "Login items" "Open at Login" list and stays there. Perhaps it would work for this app as well.

@swtprsn
Copy link

swtprsn commented Feb 3, 2024

I was having this issue with a different application (Magnet) and was able to resolve it by dragging the app to the Dock, then control-clicking it and selecting "Options" > "Open at Login". The app now appears on the "Login items" "Open at Login" list and stays there. Perhaps it would work for this app as well.

It works. Thank you.

@rosschapman
Copy link

I was having a similar issue with Ventura on an Intel Mac where I wasn't able to add or remove login items. I would click the ➕ or ➖ icons and nothing would happen. The dialog window would not even open. However I just fixed this by going into my Privacy and Security settings panel and clicking the Turn Off FileVault button. I didn't proceed with deactivation, but for some reason when I closed the dialog window, and returned to the Login Items settings page, I was able to add and remove login items per normal. Perhaps it's just a strange coincidence?

@pilotmoon pilotmoon changed the title Refuses to be added to Login Items on Ventura (M2) Refuses to be added to Login Items Jun 19, 2024
@pilotmoon
Copy link
Owner

I have now implemented the new SMAppService API for start at login. This will be released in the next update.

@pilotmoon
Copy link
Owner

pilotmoon commented Jun 19, 2024

To all who reported this "Start at login" issue, it should now be fixed in Latest Beta Build, which now requires macOS 13 (Ventura) minimum.

It is available by in-app update, with the beta option enabled.

If you get a chance to try it, please comment to let me know if it has solved this issue for you.

@pilotmoon pilotmoon reopened this Jun 19, 2024
@pilotmoon pilotmoon added the bug label Jun 19, 2024
@pilotmoon
Copy link
Owner

Now shipped in Scroll Reverser 1.9

keeshux added a commit to passepartoutvpn/passepartout that referenced this issue Oct 29, 2024
Add a status menu via SwiftUI MenuBarExtra where to:

- Show/hide app
- Launch on login via "Login Item" target
- Toggle profiles on/off

Only weird that the login item is not added to the list of "Open at
Login", but to "Allow in the Background", see
pilotmoon/Scroll-Reverser#165

Requires some refactoring to bring AppContext initialization to the
AppDelegate.

Fixes #617
Fixes #482 
Fixes #696 
Fixes #505
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants