JojiiOfficial / LiveBudsCli

A tool to control your Galaxy buds+, Live, Buds Pro and Buds 2 Pro
https://crates.io/crates/earbuds
GNU General Public License v3.0
193 stars 15 forks source link

XDG Base Directory Support #103

Closed erayaydin closed 2 months ago

erayaydin commented 1 year ago

Hello,

First of all, thank you for this package.

Current implementation use home dir and hardcoded .config. Are there any chance to follow XDG Base Directory Spec? With this way, users can easily backup their configuration and program states.

Program should check $XDG_CONFIG_HOME environment variable for store buds settings. ~/.config/livebuds/config.toml -> $XDG_CONFIG_HOME/livebuds/config.toml (if environment variable exists).

erayaydin commented 2 months ago

Thank you for fix, refactor and merge :tada: