diff --git a/cmd/fyne/internal/templates/bundled.go b/cmd/fyne/internal/templates/bundled.go index 97e86e5cb1..71dff47380 100644 --- a/cmd/fyne/internal/templates/bundled.go +++ b/cmd/fyne/internal/templates/bundled.go @@ -23,7 +23,7 @@ var resourceMakefile = &fyne.StaticResource{ var resourceAppDesktop = &fyne.StaticResource{ StaticName: "app.desktop", StaticContent: []byte( - "[Desktop Entry]\nType=Application\nName={{.Name}}\n{{- if ne .GenericName \"\"}}\nGenericName={{.GenericName}}{{end}}\nExec={{.Exec}} {{.ExecParams}}\nIcon={{.Name}}\n{{- if ne .Comment \"\"}}\nComment={{.Comment}}{{end}}\n{{- if ne .Categories \"\"}}\nCategories={{.Categories}}{{end}}\n{{if ne .Keywords \"\"}}Keywords={{.Keywords}}{{else}}Keywords=fyne;{{end}}"), + "[Desktop Entry]\nType=Application\nName={{.Name}}\n{{- if ne .GenericName \"\"}}\nGenericName={{.GenericName}}{{end}}\nExec={{.Exec}} {{- .ExecParams}}\nIcon={{.Name}}\n{{- if ne .Comment \"\"}}\nComment={{.Comment}}{{end}}\n{{- if ne .Categories \"\"}}\nCategories={{.Categories}}{{end}}\n{{if ne .Keywords \"\"}}Keywords={{.Keywords}}{{else}}Keywords=fyne;{{end}}"), } var resourceAppManifest = &fyne.StaticResource{ StaticName: "app.manifest", diff --git a/cmd/fyne/internal/templates/data/app.desktop b/cmd/fyne/internal/templates/data/app.desktop index a74aea5aa5..a8ae72d8a7 100644 --- a/cmd/fyne/internal/templates/data/app.desktop +++ b/cmd/fyne/internal/templates/data/app.desktop @@ -3,7 +3,7 @@ Type=Application Name={{.Name}} {{- if ne .GenericName ""}} GenericName={{.GenericName}}{{end}} -Exec={{.Exec}} {{.ExecParams}} +Exec={{.Exec}} {{- .ExecParams}} Icon={{.Name}} {{- if ne .Comment ""}} Comment={{.Comment}}{{end}}