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.

  • Kekin@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    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?

      • Kekin@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        1 year ago

        Here’s some info on it: https://userbase.kde.org/KWin_Rules

        From the overview:

        KWin allows the end-user to define rules to alter an application’s window attributes.

        For example, when an application is started, it can be forced to always run on Virtual Desktop 2. Or a defect in an application can be worked-around to force the window above others.