Open manan-gup opened 2 years ago
If you are running under Wayland, you have to use the following StartupWMClass=code-url-handler, instead of Code or code. This script doesn't copy the code-url-handler.desktop file to ".local/share/applications/", so you have to copy it manually and add the toolbox run to Exec=. Also, I suggest adding "--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations" launch options to enable proper Wayland support for VSCode. Reboot. With these steps, I do not have a duplicate icon anymore. Hope this helps.
Hi,
When I launch VS Code via the
.desktop
file created bytoolbox-export
it creates a duplicate icon and does not recognizeStartupWMClass
in the file pasted below. If I runxprop WM_CLASS
and click on the VS Code window I getWM_CLASS(STRING) = "code", "Code"
.Any suggestions to troubleshoot this will be appreciated.
Running Fedora Silverblue 36 with GNOME v42.4 on wayland.