[PR #907] feat(config): check for and use XDG_CONFIG_HOME #1085

Open
opened 2026-02-28 14:54:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/907
Author: @hxlcyxn
Created: 10/7/2021
Status: 🔄 Open

Base: masterHead: xdg-config


📝 Commits (1)

  • 9b77508 feat(config): check for and use XDG_CONFIG_HOME

📊 Changes

3 files changed (+12 additions, -6 deletions)

View changed files

📝 README.md (+2 -2)
📝 src/config.rs (+5 -2)
📝 src/user_config.rs (+5 -2)

📄 Description

This checks if XDG_CONFIG_HOME is set and follows that, but defaults to .config if unset.

Because I personally use a non-default home directory layout, I was never able to use spotify-tui as it didn't respect my config directory, but I finally got around to "fix" it myself.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/907 **Author:** [@hxlcyxn](https://github.com/hxlcyxn) **Created:** 10/7/2021 **Status:** 🔄 Open **Base:** `master` ← **Head:** `xdg-config` --- ### 📝 Commits (1) - [`9b77508`](https://github.com/Rigellute/spotify-tui/commit/9b7750869fd483e3b7956b148eaa4bd5eff0e901) feat(config): check for and use XDG_CONFIG_HOME ### 📊 Changes **3 files changed** (+12 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -2) 📝 `src/config.rs` (+5 -2) 📝 `src/user_config.rs` (+5 -2) </details> ### 📄 Description This checks if `XDG_CONFIG_HOME` is set and follows that, but defaults to `.config` if unset. Because I personally use a non-default home directory layout, I was never able to use spotify-tui as it didn't respect my config directory, but I finally got around to "fix" it myself. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/spotify-tui#1085
No description provided.