Skip to content

Commit 37bcf5f

Browse files
authored
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
1 parent 3005204 commit 37bcf5f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/998-bundler-newline.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
add a newline after Categories in deb .desktop file generation to fix issues #899 and #925.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn generate_desktop_file(settings: &Settings, data_dir: &Path) -> crate::Result<
193193
writeln!(file, "[Desktop Entry]")?;
194194
writeln!(file, "Encoding=UTF-8")?;
195195
if let Some(category) = settings.app_category() {
196-
write!(file, "Categories={}", category.gnome_desktop_categories())?;
196+
writeln!(file, "Categories={}", category.gnome_desktop_categories())?;
197197
}
198198
if !settings.short_description().is_empty() {
199199
writeln!(file, "Comment={}", settings.short_description())?;

0 commit comments

Comments
 (0)