Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PrintedScript committed Jan 20, 2024
1 parent 2c895eb commit 2e2bc87
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 2e2bc87

Please sign in to comment.