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

Linux

48372 readers
1538 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.

you are viewing a single comment's thread
view the rest of the comments
[–] 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.