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