Commit bbdc50f
committed
Match StartupWMClass to the window app_id so the icon is found
On Wayland the compositor picks a window's icon by matching
xdg_toplevel.app_id against an installed desktop file. GTK derives that
app_id from the executable name, so the app announces
app_id="slic3r-app-launcher", while the desktop file declares
StartupWMClass=prusa-slicer. That was the 2.x binary name; 3.0 installs
slic3r-app-launcher and no prusa-slicer binary is built any more. The
Exec line in the same file was updated for the rename but
StartupWMClass was not.
Nothing matches, so the window gets a generic icon instead of the
PrusaSlicer one. X11 is unaffected because matching there goes through
WM_CLASS, which wx sets from the application name rather than from
argv[0].
Point StartupWMClass at the app_id that is actually sent.
Setting the program name explicitly with g_set_prgname() would be the
other way to line these up, and would allow a nicer app_id, but it also
changes WM_CLASS on X11, so it is left alone here.1 parent d9e0d2b commit bbdc50f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
0 commit comments