mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #456] [Documentation] macOS sonoma (14.4.1) daemon NOT working with notify feature. #1192
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1192
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 @ed9w2in6 on GitHub (May 28, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/456
Describe the bug
After recently updating my laptop to macOS sonoma (14.4.1), the integrated daemon failed to start.
Running
spotify --daemondoesn't show any error, but it seems to have failed silently (undetected), since no process are found running withps.To Reproduce
spotify --daemon.ps auxww | grep spotify | grep -v grepand observe the lack of daemon process.Expected behaviour
Daemon should start, that is, a process should be running at background.
Additional context
spotifydseems to have no issue.Log and backtrace
backtrace: none
logs:
Environment
daemon,rodio-backend,streaming,lyric-finder,image,notify@ed9w2in6 commented on GitHub (May 28, 2024):
One work around is to not use the deamon feature, other features seems to work properly.
@aome510 commented on GitHub (May 31, 2024):
@ed9w2in6 I found out it was because of
notifyfeature. If disabled, daemon will work. MacOS has some OS-level restriction that doesn't allow you to do specific things with forked process. Previously, it didn't work withmedia-controlfeature. Now with new OS update, I will not be surprised if it doesn't work withnotifyfeature.@ed9w2in6 commented on GitHub (Jun 3, 2024):
@aome510 Thank you for your investigation.
I had recompiled without the
notifyfeature and the daemon does work again.macOS have changed a bit on permission control for deamon-like processes. There is a new settings panel under
System Settings > General > Login Items > Allow in the Background. I had also tried writing a customLaunchAgentxml manifest file under~/Library/LaunchAgents/, which is the orthodox way to register daemons in macOS, which does make it show up under then new settings panel. However I cannot manage to make it work as expected.As a workaround I believe one can use the
player_event_hook_commandwith some notifying software to achieve the same functionality:@ed9w2in6 commented on GitHub (Jun 3, 2024):
I believe this issue can be closed after modifying the README file to document this issue for newer version of macOS.
@ed9w2in6 commented on GitHub (Jun 5, 2024):
Turns out the workaround worked better than I thought:
The shell scripting part is arguably quite trivial by interfacing with
spotify_player get .... The user is free to include more or less content as they wish, and are free to choose using any tool to send notification. Latency is not important in this context anyway.Perhaps now with the
player_event_hook_commandthenotifyfeature is not needed after all?I can share my script anyone wishes to use it.
@burakkarasu commented on GitHub (Feb 21, 2025):
I'm on Sonoma 14.5 and notifications work just fine but they do have the finder icon on them.
@ed9w2in6 Upon seeing your workaround, I was immediately filled with envy. Please do share your script if you can. Also, is this with terminal-notifier or alerter?
@deauthe commented on GitHub (Oct 13, 2025):
@ed9w2in6 would really appreciate the script. Do I need to do some changes in the source code?