this post was submitted on 08 Jul 2023
31 points (97.0% liked)

Linux

48372 readers
2087 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

top 7 comments
sorted by: hot top controversial new old
[–] Kekin 2 points 1 year ago (1 children)

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?

[–] rainier 2 points 1 year ago (1 children)

What do you mean by a "window rule"?

[–] Kekin 4 points 1 year ago* (last edited 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.

[–] [email protected] 1 points 1 year ago (1 children)

I use VSCodium in Distrobox daily on Alpine Linux, and it works flawlessly. I don't experience the problem you encounter but I use KDE Plasma which I suppose handles it differently.

I am however looking into slowly moving over to KDE's Kate for development, my laptop really doesn't like opening multiple chrome instances for the various instances of VSCodium and then also an Android emulator on top of that.

[–] rainier 1 points 1 year ago

I think part of it is my trying to use VSCode on Wayland... are you launching VSCodium with Wayland?

[–] erock 1 points 1 year ago (1 children)

I don’t use vscode so I can’t help too much beyond saying Distrobox is awesome and I’ve been using it for my headless dev machine for a few months and won’t go back to anything else.

[–] warmaster 2 points 1 year ago

What do you use it for?