You are not logged in.

#1 2024-02-06 13:55:58

89c51
Member
Registered: 2012-06-05
Posts: 741

[Solved] Code (electron) issue on Wayland.

Hello i have an issue running code natively on Wayland.

If i add this file https://wiki.archlinux.org/title/Waylan … ation_file code starts as an Xwayland app. If i start it from the command line with  code --ozone-platform=wayland --enable-features=WaylandWindowDecorations it starts fine(ish). i use electron 25.

If i add the arguments i use on the command line on the conf file it again starts as an Xwayland app.

Is the wiki wrong or i am doing something wrong. And how can i get it to start as a Wayland app from the app menu.

Thanks in advance.

Edit:
Solved it. The electron version is 27 and not 25. So you rename the file as electron27-flags.conf and if you use --ozeone-platform=wayland --enable-features=WaylandWIndowsDecorations it will work. The --ozone-platform-hint=auto argument mentioned in the wiki doesn't work.

Apologies.

Last edited by 89c51 (2024-02-06 14:21:45)

Offline

#2 2024-02-06 19:17:09

micronetic
Member
Registered: 2020-02-26
Posts: 40

Re: [Solved] Code (electron) issue on Wayland.

I am using it like this and it works for me:

code-flags.conf in the .config folder.

Inside the code-flags.conf is this:

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

But I am also using:

"editor.smoothScrolling": true,
"window.titleBarStyle": "custom"

That's it.

Last edited by micronetic (2024-02-06 19:20:20)

Offline

#3 2025-10-03 18:40:35

Kepis
Member
Registered: 2021-12-15
Posts: 101

Re: [Solved] Code (electron) issue on Wayland.

Hi, now it seems using

--ozone-platform=wayland

will result in (in my case) Slack opening as a blank, fully transparent, yet interactable window. No combination, inclusion or exclusion changes the behaviour unless I remove that one flag that makes it actually run under pure Wayland (I'm using Sway on Vulkan backend).

Offline

#4 2025-10-04 10:46:13

tekstryder
Member
Registered: 2013-02-14
Posts: 495

Re: [Solved] Code (electron) issue on Wayland.

You're necro-ing a 1.5yr old SOLVED thread.

Perhaps consider opening a new topic.

Offline

#5 2025-10-04 11:41:40

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

Re: [Solved] Code (electron) issue on Wayland.

Closing this old topic.


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