electron-userland / electron-userland/electron-builder

[Snap Core24] Unnecessary .desktop file created

Open
#10,077 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14.7k
Forks
1.9k
Avg merge
3d 12h
Merged PRs (30d)
48

Description

We noticed an unnecessary (duplicate or wrong) .desktop file created while building Obsidian Snap package.

Our setup is electron builder 26.15.7, core24, classic confinement, `syncDesktopName: true`, and `desktopName: md.obsidian.Obsidian`

Two .desktop files were generated (so there are two items in the user's app launcher).

`md.obsidian.Obsidian.desktop`
`obsidian.desktop`

We were expecting only the first one, not the second.
They have the same content.

```
[Desktop Entry]
Name=Obsidian
Exec=obsidian %U
Terminal=false
Type=Application
Icon=${SNAP}/meta/gui/icon.png
StartupWMClass=md.obsidian.Obsidian
Comment=Obsidian
MimeType=x-scheme-handler/obsidian;
Categories=Office;
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Snap package with electron-builder 26.15.7, core24, classic confinement, syncDesktopName enabled, and desktopName set to md.obsidian.Obsidian. Compare the generated md.obsidian.Obsidian.desktop and obsidian.desktop files; done means only the expected desktop file is produced with the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.