Open ed9w2in6 opened 6 months ago
One work around is to not use the deamon feature, other features seems to work properly.
@ed9w2in6 I found out it was because of notify
feature. 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 with media-control
feature. Now with new OS update, I will not be surprised if it doesn't work with notify
feature.
@aome510 Thank you for your investigation.
I had recompiled without the notify
feature 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 custom LaunchAgent
xml 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_command
with some notifying software to achieve the same functionality:
I believe this issue can be closed after modifying the README file to document this issue for newer version of macOS.
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_command
the notify
feature is not needed after all?
I can share my script anyone wishes to use it.
Describe the bug After recently updating my laptop to macOS sonoma (14.4.1), the integrated daemon failed to start. Running
spotify --daemon
doesn'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 grep
and observe the lack of daemon process.Expected behaviour Daemon should start, that is, a process should be running at background.
Additional context
spotifyd
seems to have no issue.Log and backtrace backtrace: none logs:
Environment
daemon,rodio-backend,streaming,lyric-finder,image,notify