mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #100] Proposal: move configuration to config directory #69
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#69
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 @aykevl on GitHub (Sep 22, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/100
Right now, go-librespot reads configuration and credentials from the current working directory (unless specified otherwise). I propose we use the following scheme instead:
UserConfigDir() + "/go-librespot"so it also uses the appropriate directory on other OSes.There are a few reasons why I think this is a good idea:
@devgianlu if you agree with this scheme I'd like to implement this (but asking here first before I put a lot of work into it).
@Willyarma commented on GitHub (Sep 22, 2024):
Its more useful to me the way it is for my application, is there a way we can have both? perhaps with a command line option?
@aykevl commented on GitHub (Sep 23, 2024):
@Willyarma yes, if there's a flag to set the config directory then you can set it to use the current working directory.
@Willyarma commented on GitHub (Sep 23, 2024):
I already made a request in #80 for command line options. Its loosly related to this.
I was thinking about creating the config file dynamically on the fly then realised if I launch all instances in parallel then that wont work. A command line path / filename for different config files would though.
Edit: Looks like it was already done, sorry I didnt realise.
@devgianlu commented on GitHub (Sep 23, 2024):
@aykevl This sounds like a great idea, especially in tackling #81. I have recently refactored the configuration code to use
koanfso it's a little bit nicer, but this is even better.@aykevl commented on GitHub (Sep 29, 2024):
Proposal is implemented in #103 so closing.