[GH-ISSUE #65] Request: support XDG_CONFIG_HOME #16

Closed
opened 2026-03-14 12:24:27 +03:00 by kerem · 2 comments
Owner

Originally created by @baodrate on GitHub (Mar 9, 2022).
Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/65

Feature request: support the XDG Base Directory specification by checking $XDG_CONFIG_HOME/hackernews_tui/hn-tui.toml first, and then falling back to the ~/.config if it doesn't exist.

Originally created by @baodrate on GitHub (Mar 9, 2022). Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/65 Feature request: support the [XDG Base Directory](https://wiki.archlinux.org/title/XDG_Base_Directory) specification by checking `$XDG_CONFIG_HOME/hackernews_tui/hn-tui.toml` first, and then falling back to the `~/.config` if it doesn't exist.
kerem closed this issue 2026-03-14 12:24:32 +03:00
Author
Owner

@aome510 commented on GitHub (Mar 29, 2022):

Hi @qubidt. Sorry for the delay. I made the change in github.com/aome510/hackernews-TUI@f99380ed30.

A new file finding logic is indicated in here.

In short, hackernews-tui will look into $XDG_CONFIG_HOME/hn-tui.toml then fall back to $HOME/.config/hn-tui.toml. If that doesn't work, you can specify a custom path with -c or --config.

<!-- gh-comment-id:1081329948 --> @aome510 commented on GitHub (Mar 29, 2022): Hi @qubidt. Sorry for the delay. I made the change in https://github.com/aome510/hackernews-TUI/commit/f99380ed30a9f0897be67ba8a6f2e1145f4f6717. A new file finding logic is indicated in [here](https://github.com/aome510/hackernews-TUI#configuration). In short, `hackernews-tui` will look into `$XDG_CONFIG_HOME/hn-tui.toml` then fall back to `$HOME/.config/hn-tui.toml`. If that doesn't work, you can specify a custom path with `-c` or `--config`.
Author
Owner

@baodrate commented on GitHub (Mar 29, 2022):

🙌 awesome! seems to work correctly, thank you

<!-- gh-comment-id:1082103189 --> @baodrate commented on GitHub (Mar 29, 2022): :raised_hands: awesome! seems to work correctly, thank you
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/hackernews-TUI#16
No description provided.