From 2e2bc876824d8e5f3fdef39628d4f7e44740ae6c Mon Sep 17 00:00:00 2001 From: PrintedScript <64908610+PrintedScript@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:14:07 +0800 Subject: [PATCH] fixed typo --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index a9d8ff7..c68ae10 100644 --- a/src/main.rs +++ b/src/main.rs @@ -298,8 +298,7 @@ Terminal=true Version={} MimeType=x-scheme-handler/syntax-player;", latest_bootstrapper_path.to_str().unwrap(), latest_bootstrapper_path.to_str().unwrap(), env!("CARGO_PKG_VERSION")); - let desktop_file_path = "~/.local/share/applications/syntax-player.desktop"; - + let desktop_file_path = dirs::data_local_dir().unwrap().join("applications").join("syntax-player.desktop"); std::fs::write(desktop_file_path, desktop_file_content).unwrap(); info("Please launch SYNTAX from the website, to continue with the update process."); @@ -390,8 +389,7 @@ Terminal=true Version={} MimeType=x-scheme-handler/syntax-player;", latest_bootstrapper_path.to_str().unwrap(), latest_bootstrapper_path.to_str().unwrap(), env!("CARGO_PKG_VERSION")); - let desktop_file_path = "~/.local/share/applications/syntax-player.desktop"; - + let desktop_file_path = dirs::data_local_dir().unwrap().join("applications").join("syntax-player.desktop"); std::fs::write(desktop_file_path, desktop_file_content).unwrap(); }