From 87676ba7ab694f17f78bb099196169f5305230f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=81nis?= Date: Fri, 22 May 2026 15:50:28 +0300 Subject: [PATCH] Store config under emby-tui-client instead of emby-client Co-Authored-By: Claude Opus 4.7 (1M context) --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index 75c1e7c..dfc866c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -33,7 +33,7 @@ pub struct CliArgs { #[arg(long, env = "EMBY_VIDEO_OUTPUT")] pub video_output: Option, - /// 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, @@ -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")