Desktop entries


Improper association of launcher with running window

Run this, then focus the desired running window

xprop WM_CLASS

The output will be something like

WM_CLASS(STRING) = "MATLAB R2024a", "MATLAB R2024a"

Then in the desktop entry, add:

StartupWMClass=MATLAB R2024a

Improper opening of links in browsers

add %u after the executable in the .desktop entry

Dolphin

File gets opened instead of showing directory

Use the --select option with %f --select shows the containing folder and highlights the file passed with %f

⚠️ I thought this worked, but deleting the custom desktop entry worked better...

Improper opening of apps on KDE

An issue where the window does not get stitched to the instance being loaded and in some cases, opens a new Wayland window with the default yellow logo.

The fix

StartupWMClass=zen

inside the .desktop entry (solution shown for Zen browser)