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:
1 parent
093b13f03e
commit
87676ba7ab
1 file changed
+3
-3
+3
-3
@@ -33,7 +33,7 @@ pub struct CliArgs {
|
|||||||
#[arg(long, env = "EMBY_VIDEO_OUTPUT")]
|
#[arg(long, env = "EMBY_VIDEO_OUTPUT")]
|
||||||
pub video_output: Option<String>,
|
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)]
|
#[arg(short, long)]
|
||||||
pub config: Option<PathBuf>,
|
pub config: Option<PathBuf>,
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ fn read_file_config(explicit: Option<&Path>) -> Result<(FileConfig, PathBuf)> {
|
|||||||
vec![p.to_path_buf()]
|
vec![p.to_path_buf()]
|
||||||
} else {
|
} else {
|
||||||
let mut v = vec![PathBuf::from("config.toml")];
|
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.push(dirs.config_dir().join("config.toml"));
|
||||||
}
|
}
|
||||||
v
|
v
|
||||||
@@ -117,7 +117,7 @@ fn read_file_config(explicit: Option<&Path>) -> Result<(FileConfig, PathBuf)> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn default_save_path() -> 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")
|
dirs.config_dir().join("config.toml")
|
||||||
} else {
|
} else {
|
||||||
PathBuf::from("config.toml")
|
PathBuf::from("config.toml")
|
||||||
|
|||||||
Reference in new issue
Block a user