Electron应用在Wayland桌面环境下经常遇到一些问题,可以通过配置启动参数来获得更好的体验。我的系统为Arch Linux,Electron版本为42,通过配置以下参数开启Wayland原生运行、vaapi视频硬件解码和更好的Wayland下的输入法体验。在Arch Linux下/home/${USER}/.config/目录下的electron-flags.conf配置文件内容如下:
--enable-features=WaylandWindowDecorations,AllowQt,AcceleratedVideoDecodeLinuxGL
--use-angle=vulkan
--disable-gpu-driver-bug-workarounds
--ozone-platform=wayland
--ignore-gpu-blocklist
--enable-zero-copy
--wayland-text-input-version=3
K哥我是你的粉丝,能回复一下我吗?😍😍😍
Good a blog toper
Im 4466,yahoo
Here you are
Great post,Thanks for sharing
Hi~(* ̄▽ ̄*)
Honestly, it’s really good
So,I like it
An Engaging Blog Post
The content is really great
That was amazing
Its Amazing
Hi,how are you
HI,I AM HERE AGAIN AND AGAIN
If you are mad at me, just curse me out
Wishing you all the best