Skip to content

Commit

Permalink
fix(bundler) missing newline in deb desktop file generation (fix: #899,
Browse files Browse the repository at this point in the history
#925) (#998)

* fix missing newline in desktop file generation

* add change file for PR #998
  • Loading branch information
ho-ho-ho committed Aug 27, 2020
1 parent 3005204 commit 37bcf5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/998-bundler-newline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---

add a newline after Categories in deb .desktop file generation to fix issues #899 and #925.
2 changes: 1 addition & 1 deletion cli/tauri-bundler/src/bundle/deb_bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?;
Expand Down

0 comments on commit 37bcf5f

Please sign in to comment.