cosbrowser
cosbrowser copied to clipboard
在archlinux wayland 下无法运行
/tmp/.mount_cosbroJAm4n6/cosbrowser
(cosbrowser:119347): Gtk-WARNING **: 22:14:02.086: cannot open display: :0
试下先 unset GDK_BACKEND 再运行?
我把aur里面的启动脚本这样改了以后就能运行了
diff --git a/PKGBUILD b/PKGBUILD
index 450e2a9..6977cf2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -48,7 +48,8 @@ package() {
install -d ${pkgdir}/usr/share/licenses
echo "#!/bin/bash
-electron11 /opt/$pkgname/app.asar -no-sandbox \$@" > ${pkgdir}/usr/bin/$pkgname && chmod a+x ${pkgdir}/usr/bin/$pkgname
+unset GDK_BACKEND
+electron11 /opt/$pkgname/app.asar --no-sandbox \$@" > ${pkgdir}/usr/bin/$pkgname && chmod a+x ${pkgdir}/usr/bin/$pkgname
echo "[Desktop Entry]
Name=$pkgname
运行环境
操作系统: Arch Linux KDE Plasma 版本: 6.4.4 KDE 程序框架版本: 6.17.0 Qt 版本: 6.9.2 内核版本: 6.16.5-arch1-1 (64 位) 图形平台: Wayland