aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
3.38k stars 147 forks source link

Configuration option to disable notifications #302

Closed oleksandr-oksenenko closed 9 months ago

oleksandr-oksenenko commented 9 months ago

Is your feature request related to a problem? Please describe. No way to disable notifications in the configuration.

Describe the solution you'd like Would be great to have a configuration option that would allow to disable all notifications from spotify_player.

Describe alternatives you've considered Manually installing using cargo without notify feature is an alternative, however, it's not very convenient.

Additional context spotify_player notifications on MacOS are a bit ugly (using Finder icon). Also, I try to limit to a minimum the amount of the notifications I get.

aome510 commented 9 months ago

Related: https://github.com/aome510/spotify-player/issues/292. This issue seems to be specific to the brew package manager as it installs the application with notify feature when the feature is disabled by default.

oleksandr-oksenenko commented 9 months ago

@aome510 thanks for reply! is it disabled by default specifically because it has some issues? Generally, I feel like hiding features behind compilation flags instead of configurations is a bit inconvenient, since you either have to rely on defaults provided by the packager or resort to compiling the project yourself. Is there a specific reason for this?

aome510 commented 9 months ago

@aome510 thanks for reply! is it disabled by default specifically because it has some issues? Generally, I feel like hiding features behind compilation flags instead of configurations is a bit inconvenient, since you either have to rely on defaults provided by the packager or resort to compiling the project yourself. Is there a specific reason for this?

The main reason is to avoid redundant dependencies when building the application if people don't need the notification feature, not because it has some issues. This "feature-behind-compilation-flag" pattern is quite common in rust ecosystem (and possibly c++). That said, I agree that it's inconvenient to hide features behind compilation flags instead of configurations.