From a6bcf1302df8e4872dbb3dfa837956c43421a6b0 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 31 May 2024 13:26:59 +0800 Subject: [PATCH 1/2] Migrate to dirs as dirs_next is unmaintained --- Cargo.toml | 2 +- src/platform_impl/gtk/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1b1d15e..58084c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ features = [ [target."cfg(target_os = \"linux\")".dependencies] libappindicator = "0.9" -dirs-next = "2.0" +dirs = "5" [target."cfg(target_os = \"linux\")".dev-dependencies] gtk = "0.18" diff --git a/src/platform_impl/gtk/mod.rs b/src/platform_impl/gtk/mod.rs index 5ffdc59..58e82eb 100644 --- a/src/platform_impl/gtk/mod.rs +++ b/src/platform_impl/gtk/mod.rs @@ -126,7 +126,7 @@ fn temp_icon_path( ) -> std::io::Result<(PathBuf, PathBuf)> { let parent_path = match temp_icon_dir.as_ref() { Some(path) => path.to_path_buf(), - None => dirs_next::runtime_dir() + None => dirs::runtime_dir() .unwrap_or_else(std::env::temp_dir) .join("tray-icon"), }; From ee2642dc43707eef16173f24b18561baea294017 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 31 May 2024 13:40:47 +0800 Subject: [PATCH 2/2] Add change file --- .changes/dirs.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changes/dirs.md diff --git a/.changes/dirs.md b/.changes/dirs.md new file mode 100644 index 0000000..b1a7f96 --- /dev/null +++ b/.changes/dirs.md @@ -0,0 +1,5 @@ +--- +"tray-icon": "patch" +--- + +Switch from `dirs_next` to `dirs` as `dirs_next` is now unmaintained while `dirs` is