Skip to content

[Bug]: Unwanted xdg-desktop-portal screen sharing dialog on startup (Wayland, Electron 39) #317955

@johanruizb

Description

@johanruizb

Does this issue occur when all extensions are disabled?: Yes/No
Yes

  • VS Code Version: Code - Insiders 1.122.0-insider (Electron 39.8.8)
  • OS Version: Ubuntu 24.04.4 LTS, GNOME + Wayland, Linux 6.17.0-29-generic

Steps to Reproduce:

  1. Launch VS Code Insiders on Wayland (GNOME, Ubuntu 24.04)
  2. Wait for the main window to load — no further action needed

Expected: VS Code starts normally without any system dialogs.

Actual: The xdg-desktop-portal screen sharing dialog immediately appears: "Screen Sharing — org.chromium.Chromium wants to share your screen. Choose what to share."

Image

Journal evidence:

code-insiders.desktop: ERROR:screencast_portal.cc:369 Failed to start the screen cast session.
code-insiders.desktop: ERROR:base_capturer_pipewire.cc:93 ScreenCastPortal failed: 2
xdg-desktop-por: Failed to associate portal window with parent window
xdg-desktop-portal-gnome.service: Main process exited, code=dumped, status=11/SEGV

Additional notes:

  • Happens with --disable-extensions, empty profile (--user-data-dir /tmp/vscode-empty), and no MCP servers
  • WEBRTC_PIPEWIRE_PORTAL_DISABLE=1 has no effect
  • --ozone-platform-hint=x11 does not fix it either
  • The GNOME portal implementation crashes with SEGV when handling the request

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions