Sfoglia il codice sorgente

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
ho-ho-ho 5 anni fa
parent
commit
37bcf5fea1

+ 5 - 0
.changes/998-bundler-newline.md

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

+ 1 - 1
cli/tauri-bundler/src/bundle/deb_bundle.rs

@@ -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())?;