noTunes icon indicating copy to clipboard operation
noTunes copied to clipboard

Apple Music still opens but immediately closes, making the Dock jump

Open steveswinsburg opened this issue 3 years ago • 4 comments

Firstly, this is great. My headphones have a touch pad on one ear to pause the music, but iTines intercepts that and decides to open. So this app kills it. Almost. I find that Music.app still opens but is then killed, and this makes the dock jump.

It may be a limitation of the listener approach in the code of your app. It seems odd that Apple allows the Dock to show the app launching but then other listeners are notifier and get a chance to interact with it and kill it I would expect the notifications to be sent before the Dock is notified).

Anyway, unsure if there is a fix, just logging it.

https://user-images.githubusercontent.com/129129/150937080-49c6b0e2-f79b-47d3-9b12-7c460d7b401d.mp4

steveswinsburg avatar Jan 25 '22 08:01 steveswinsburg

It actually gives me a good feeling that I know that the shukker Music app has been kicked in the face before it even showed up. It's a type of ASMR :)

andrask avatar May 11 '22 11:05 andrask

This is not a bug, although it might be annoying. noTunes works by watching for Music being launched and then sending it a quit notification. It has to start for noTunes to work, and that's going to bounce the dock. Annoying yes, but just part of the system.

maurymarkowitz avatar Nov 07 '22 12:11 maurymarkowitz

This is not a bug, although it might be annoying. noTunes works by watching for Music being launched and then sending it a quit notification. It has to start for noTunes to work, and that's going to bounce the dock. Annoying yes, but just part of the system.

@maurymarkowitz Any option to avoid the icon app bouncing in the dock?

YoniMelki avatar Jan 08 '23 08:01 YoniMelki

Oh well, I actually love the fact that music tries to open, but it cannot. :D

I know this comment is offtopic, but thank you @tombonez for this awesome project. :)

noc2spam avatar Jan 18 '23 13:01 noc2spam