Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows launched from VSCode appear as VSCode in Ubuntu dock and with Alt+TAB

When I launch a graphical application from VSCode's terminal, the newly launched application appears as a new VSCode window in Ubuntu's dock and when using Alt+TAB to switch between windows/applications. For example, when I launch evince from VSCode, I don't see the evince icon in the dock, but GNOME groups the evince window and the VSCode window under the VSCode application in the dock).

What mechanism is used to attach windows created by separate applications to the VSCode window? Is there a way to disable it (i.e. let the VSCode terminal behave like usual terminals when launching GUI applications)?

like image 220
Matthieu Moy Avatar asked Aug 31 '25 17:08

Matthieu Moy


1 Answers

This happens when VSCode is installed through the snap package. Indeed, snap is not only a package manager but a kind of container technology, hence the snap version of the VSCode process is ran within a container, and child processes are also containerized.

Solution : install VSCode through another system. For Ubuntu, there's a .deb package on VSCode's download page, which doesn't have the issue.

like image 172
Matthieu Moy Avatar answered Sep 03 '25 21:09

Matthieu Moy