You are not logged in.

#1 2025-06-25 10:35:32

foobar17
Member
Registered: 2025-06-25
Posts: 2

VScode & sway/wayland

Hi!
I just switched from i3 to sway, and I have the problem with VS Code that it does not show the open folder dialogue.
I tried around with different log levels, but VS Code is completely silent through its runtime.
also the args

--enable-features=UseOzonePlatform --ozone-platform=wayland

did not have any impact. (VS Code just gives a warning that

'enable-features' is not in the list of known options, but still passed to Electron/Chromium

. On Plasma wayland or GNOME wayland I don't have any problems.
I was also playing around with several environment variables like

ELECTRON_OZONE_PLATFORM_HINT=wayland

,

GTK_USE_PORTAL

etc.

Offline

#2 2025-07-24 07:05:54

foobar17
Member
Registered: 2025-06-25
Posts: 2

Re: VScode & sway/wayland

This did the trick: https://wiki.archlinux.org/title/XDG_De … _not_start
i.e.

$ systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
$ dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

Offline

#3 2025-07-24 09:16:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,050
Website

Re: VScode & sway/wayland

Please mark your thread as solved by editing the first post and amending the topic title.

https://wiki.archlinux.org/title/Genera … ow_to_post

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB