Commit cc40353
Fix DSView icon missing from COSMIC desktop taskbar
On Wayland (e.g. COSMIC), running apps are matched to their desktop
entry via the Wayland app-id. Qt derives the app-id from
QGuiApplication::desktopFileName() if set, otherwise falls back to the
application name ("DSView"). Since the desktop file is named
"dsview.desktop", the case mismatch prevented COSMIC from matching the
running app to its entry.
Fixed by calling setDesktopFileName("dsview") to explicitly match the
desktop file name. Also moved the desktop file install destination from
the hardcoded /usr/share/applications to the cmake install prefix
(share/applications) for consistency with other installed files.
Added StartupWMClass=DSView for X11 compatibility.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2e9e2c8 commit cc40353
3 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
0 commit comments