fix(bundler) missing newline in deb desktop file generation (fix: #899, #925) (#998)

* fix missing newline in desktop file generation

* add change file for PR #998
This commit is contained in:
ho-ho-ho 2020-08-27 22:48:42 +02:00 committed by GitHub
parent 3005204a31
commit 37bcf5fea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
add a newline after Categories in deb .desktop file generation to fix issues #899 and #925.

View File

@ -193,7 +193,7 @@ fn generate_desktop_file(settings: &Settings, data_dir: &Path) -> crate::Result<
writeln!(file, "[Desktop Entry]")?;
writeln!(file, "Encoding=UTF-8")?;
if let Some(category) = settings.app_category() {
write!(file, "Categories={}", category.gnome_desktop_categories())?;
writeln!(file, "Categories={}", category.gnome_desktop_categories())?;
}
if !settings.short_description().is_empty() {
writeln!(file, "Comment={}", settings.short_description())?;