在 WSL 2 中启动 flatpak,在主机上使用 X Server 会导致 org.gnome.Epiphany.Devel 崩溃

在 WSL 2 中启动 flatpak,在主机上使用 X Server 会导致 org.gnome.Epiphany.Devel 崩溃

好吧,正如标题所说,我已经在 WSL 2 中安装了 flatpak 和 org.gnome.Epiphany.Devel,但每次打开它时应用程序都会崩溃。

下面是我编写的 bash 脚本,试图总结启动 Epiphany 浏览器所采取的操作:

#!/bin/bash

#WSL_HOST VAR
export WSL_WINDOWS_HOST=`cat /etc/resolv.conf | grep nameserver | cut -d ' ' -f 2`
export DISPLAY=$WSL_WINDOWS_HOST":0"

echo "Starting DBUS Service...";
sudo service dbus start

eval $(dbus-launch --sh-syntax)
sudo usermod -a -G messagebus $USER

# Config Flatpak
flatpak --user config --set languages 'en'

# Start Epiphany Devel using Flatpak
flatpak run --verbose  --env=DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS org.gnome.Epiphany.Devel

错误是:

(epiphany:2): epiphany-WARNING **: 13:01:43.663: Web process crashed                                                    flatpak-spawn: Invalid byte sequence in conversion input                                                                Try "flatpak-spawn --help" for more information.   

相关内容