mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[PR #103] [MERGED] Use configuration directory and store app state there #209
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#209
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?
📋 Pull Request Information
Original PR: https://github.com/devgianlu/go-librespot/pull/103
Author: @aykevl
Created: 9/27/2024
Status: ✅ Merged
Merged: 9/29/2024
Merged by: @devgianlu
Base:
master← Head:configdir📝 Commits (3)
316ee5afeat: read configuration from OS-specific config dir instead of CWD17629defeat: move credentials in common app state8b41648feat: save generated device ID in app state📊 Changes
1 file changed (+108 additions, -45 deletions)
View changed files
📝
cmd/daemon/main.go(+108 -45)📄 Description
This implements the changes proposed in #100. It implements the following things:
--config_pathand--credentials_pathflags are removed and replaced with a single--config_dirflag.This needs a few configuration changes to continue working:
--config_dir=.. This will keep reading the configuration from the current working directory, and stores the app state there.I could let go-librespot do this automatically, but that feels possibly dangerous if it normally uses settings in a particular directory unless they exist in the current working directory. So to avoid surprises, this needs to be done by hand.
I have not tested credential types other than "interactive": zeroconf doesn't seem to work well on my network and I'm not sure how to set up spotify_token.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.