Skip to content

fix(linux): preserve display name in .desktop file generation#5182

Draft
leaanthony wants to merge 1 commit intomasterfrom
fix/5072-desktop-file-name
Draft

fix(linux): preserve display name in .desktop file generation#5182
leaanthony wants to merge 1 commit intomasterfrom
fix/5072-desktop-file-name

Conversation

@leaanthony
Copy link
Copy Markdown
Member

Description

GenerateDotDesktop was calling normaliseName() on the Name field, which lowercased it and replaced spaces with dashes. This altered the Name= value in the generated .desktop entry, affecting how the app appears in Linux desktop menus.

The Name field in a .desktop file should be the human-readable display name per the FreeDesktop spec. Only the output filename needs to be normalized.

Before:

wails3 generate .desktop -name "My app" -exec "my-app"
# → Name=my-app (incorrect)

After:

wails3 generate .desktop -name "My app" -exec "my-app"
# → Name=My app (correct, as per FreeDesktop spec)

Fixes #5072

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Manual verification of the generated output
  • No existing tests for this function

Checklist:

  • My code follows the general coding style of this project
  • My changes generate no new warnings

GenerateDotDesktop was calling normaliseName() on the Name field,
which lowercased it and replaced spaces with dashes. This altered
the Name= value in the .desktop entry, affecting how the app appears
in desktop menus.

The Name field in a .desktop file should be the human-readable display
name per the FreeDesktop spec. Only the output filename needs to be
normalized.

Before: wails3 generate .desktop -name "My app" → Name=my-app
After:  wails3 generate .desktop -name "My app" → Name=My app

Fixes #5072
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 19, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ba822f9e-0b71-4d34-bcbb-d1328d07991b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/5072-desktop-file-name

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@leaanthony leaanthony changed the base branch from v3-alpha to master April 29, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v3] Linux .desktop file generation alters the application name in file

1 participant