-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] Wayland support #122
Comments
Firefox也会模糊来着……我这边是KDE,我现在都不用Wayland |
如果是 Arch 系的发行版,可以直接在 ~/.config/electron-flags.conf 中加入这些选项 |
尝试了一下使用 Electron 的 commandLine API app.commandLine.appendSwitch('enable-features', 'UseOzonePlatform');
app.commandLine.appendSwitch('ozone-platform', 'wayland'); 在应用启动后添加 command line switch ,能成功启动,但无法渲染界面,就像这样
又做了几次试验,发现 |
#!/bin/bash
exec electron /usr/lib/electron-netease-cloud-music "$@" 可以加个 再 $ electron-netease-cloud-music --enable-features=UseOzonePlatform --ozone-platform=wayland 就可 然后如果你用的是 $ electron-netease-cloud-music --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland |
[Desktop Entry] 把缩放还原回 --force-device-scale-factor=1 就不会模糊 ,因为默认是x11模式不支持wayland的分数缩放 如果要缩放使用xwayland 应用的话,最优解是直接修dpi,这样既能缩放x11应用 又不会模糊 echo "Xft.dpi: 140" | xrdb -merge |
我使用的 Gnome + Wayland + fractional scaling,electron-netease-cloud-music 会默认使用 Xwayland 启动,但是会变得模糊。Electron 12 加入了 native Wayland 支持,只需要加两个启动选项就能启用,可以解决模糊的问题。也就是需要这样启动
希望能够增加一个内置的选项,这样就不用去覆盖 /usr/bin/electron-netease-cloud-music 或者 .desktop 文件。
The text was updated successfully, but these errors were encountered: