mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1059] Document configuration via environment variables in the wiki #498
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#498
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 @b-errouane on GitHub (Sep 18, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1059
Librespot implements the usage of environment variables instead of CLI parameters for configuration. I only found out because I did go through the code. It would have been nice to have it documented here.
@roderickvd commented on GitHub (Sep 18, 2022):
True. Would you add the documentation? The wiki is editable by everyone.
@b-errouane commented on GitHub (Sep 19, 2022):
Yep I will do it. I didn't notice the edit option.
@roderickvd commented on GitHub (Sep 22, 2022):
Great stuff. Feel free to close this issue when you're done.
@JasonLG1979 commented on GitHub (Sep 23, 2022):
It's documented in the change log. Any cli arg you can pass to librespot can also be passed as an env var by prefixing it with
LIBRESPOT_, making it all caps and replacing any-'s with_'s. So optionfoo-barbecomesLIBRESPOT_FOO_BAR. You can also use that ability to create a makeshift config file of sorts if you're using systemd to daemonize it as I do in Raspotify. (That was my motivation for adding the feature)@b-errouane commented on GitHub (Oct 12, 2022):
Took some time because I had other things going on. I took the liberty to use @JasonLG1979 s comment as a basis for the wiki change.
@roderickvd commented on GitHub (Oct 12, 2022):
Thanks 👍