Skip to content

Commit

Permalink
chore(deps): migrate to dirs as dirs_next is unmaintained (#166)
Browse files Browse the repository at this point in the history
* Migrate to dirs as dirs_next is unmaintained

* Add change file
  • Loading branch information
Legend-Master authored May 31, 2024
1 parent 437869b commit f1f3adb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/dirs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tray-icon": "patch"
---

Switch from `dirs_next` to `dirs` as `dirs_next` is now unmaintained while `dirs` is
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/gtk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
};
Expand Down

0 comments on commit f1f3adb

Please sign in to comment.