Store config under emby-tui-client instead of emby-client

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
janisslsmandClaude Opus 4.7 committed 2026-05-22 15:50:28 +03:00
1 parent 093b13f03e
commit 87676ba7ab
1 file changed
+3 -3
+3 -3
View File
@@ -33,7 +33,7 @@ pub struct CliArgs {
#[arg(long, env = "EMBY_VIDEO_OUTPUT")]
pub video_output: Option<String>,
/// Path to config file. Defaults: ./config.toml then $XDG_CONFIG_HOME/emby-client/config.toml
/// Path to config file. Defaults: ./config.toml then $XDG_CONFIG_HOME/emby-tui-client/config.toml
#[arg(short, long)]
pub config: Option<PathBuf>,
@@ -95,7 +95,7 @@ fn read_file_config(explicit: Option<&Path>) -> Result<(FileConfig, PathBuf)> {
vec![p.to_path_buf()]
} else {
let mut v = vec![PathBuf::from("config.toml")];
if let Some(dirs) = directories::ProjectDirs::from("", "", "emby-client") {
if let Some(dirs) = directories::ProjectDirs::from("", "", "emby-tui-client") {
v.push(dirs.config_dir().join("config.toml"));
}
v
@@ -117,7 +117,7 @@ fn read_file_config(explicit: Option<&Path>) -> Result<(FileConfig, PathBuf)> {
}
fn default_save_path() -> PathBuf {
if let Some(dirs) = directories::ProjectDirs::from("", "", "emby-client") {
if let Some(dirs) = directories::ProjectDirs::from("", "", "emby-tui-client") {
dirs.config_dir().join("config.toml")
} else {
PathBuf::from("config.toml")