Following up on a recent post on Distrobox…
For those using VSCode with Distrobox, how do you all do it? distrobox wiki suggests two approaches: flatpak + dev containers and running vscode from within distrobox.
Which do you prefer and why?
I’ve experimented with both and got both running with Wayland. Using the latter approach (vscode within distrobox), I couldn’t quite get the running instances to be recognized by GNOME shell as the same vscode app that launched it. It shows up as code-url-handler, and doesn’t share the same icon on the dash. The flatpak approach doesn’t seem to have this issue.
I faced this as well on KDE and got around it by creating a window rule to match it by window title and force a .desktop name to the vs code window, so it shows the correct icon on the taskbar. I wonder if there is a similar functionality on Gnome?
What do you mean by a “window rule”?
Here’s some info on it: https://userbase.kde.org/KWin_Rules
From the overview: