This commit is contained in:
PrintedScript 2024-01-20 21:47:48 +08:00
parent 541e99b1b2
commit 2397108f63
1 changed files with 1 additions and 4 deletions

View File

@ -379,10 +379,7 @@ MimeType=x-scheme-handler/syntax-player;", latest_bootstrapper_path.to_str().unw
let desktop_file_path = "/usr/share/applications/syntax-player.desktop";
let mut file = File::create(desktop_file_path).expect("Unable to create desktop file");
file.write_all(desktop_file_content.as_bytes())
.expect("Unable to write to desktop file");
std::fs::write(desktop_file_path, desktop_file_content).unwrap();
}
// Write the AppSettings.xml file