[GH-ISSUE #1059] Document configuration via environment variables in the wiki #498

Closed
opened 2026-02-27 19:30:59 +03:00 by kerem · 6 comments
Owner

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.

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](https://github.com/librespot-org/librespot/blob/131310b920bda545a5cb28789e96d1f83524212f/src/main.rs#L603). It would have been nice to have it documented [here](https://github.com/librespot-org/librespot/wiki/Options).
kerem 2026-02-27 19:30:59 +03:00
Author
Owner

@roderickvd commented on GitHub (Sep 18, 2022):

True. Would you add the documentation? The wiki is editable by everyone.

<!-- gh-comment-id:1250379023 --> @roderickvd commented on GitHub (Sep 18, 2022): True. Would you add the documentation? The wiki is editable by everyone.
Author
Owner

@b-errouane commented on GitHub (Sep 19, 2022):

Yep I will do it. I didn't notice the edit option.

<!-- gh-comment-id:1250897801 --> @b-errouane commented on GitHub (Sep 19, 2022): Yep I will do it. I didn't notice the edit option.
Author
Owner

@roderickvd commented on GitHub (Sep 22, 2022):

Great stuff. Feel free to close this issue when you're done.

<!-- gh-comment-id:1255472483 --> @roderickvd commented on GitHub (Sep 22, 2022): Great stuff. Feel free to close this issue when you're done.
Author
Owner

@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 option foo-bar becomes LIBRESPOT_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)

<!-- gh-comment-id:1256607689 --> @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 option `foo-bar` becomes `LIBRESPOT_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)
Author
Owner

@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.

<!-- gh-comment-id:1276628445 --> @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.
Author
Owner

@roderickvd commented on GitHub (Oct 12, 2022):

Thanks 👍

<!-- gh-comment-id:1276640015 --> @roderickvd commented on GitHub (Oct 12, 2022): Thanks 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#498
No description provided.