如果我将比例设置为 2,xfce 会立即终止,并出现分段错误

如果我将比例设置为 2,xfce 会立即终止,并出现分段错误

我有一个无头 ubuntu,我已尝试使用官方 Canonical Azure 映像以及官方 Canonical docker 映像。结果完全相同。

我已经安装了xfcexrdpxorgxrdp。我可以使用 MS 的两个 MobaXTerm 从我的 Windows 家用机成功创建远程 xrdp 会话mstsc

我有 4K 显示器,所以我想设置比例 2。我无法在 GUI 中设置,因为虽然它允许从下拉列表中选择值 2,但按下“应用”按钮后,什么都没有发生,并立即设置回 1。

因此我尝试在配置文件中设置它:

sudo vim /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml

然后设置WindowScalingFactor2

<property name="Gdk" type="empty">
    <property name="WindowScalingFactor" type="int" value="2"/>
</property>

重新启动会话后,出现登录屏幕,输入我的凭据并按[确定]后,会话立即终止。

以下是 .xsession-errors 文件内容:

Xsession: X session started for myuser at Fri Nov 24 07:19:28 UTC 2023
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:11.0
localuser:myuser being added to access control list
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting USER=myuser
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting HOME=/home/myuser
dbus-update-activation-environment: setting XRDP_PULSE_SINK_SOCKET=xrdp_chansrv_audio_out_socket_11
dbus-update-activation-environment: setting XRDP_PULSE_SOURCE_SOCKET=xrdp_chansrv_audio_in_socket_11
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
dbus-update-activation-environment: setting LOGNAME=myuser
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
dbus-update-activation-environment: setting XRDP_SOCKET_PATH=/run/xrdp/sockdir
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
dbus-update-activation-environment: setting DISPLAY=:11.0
dbus-update-activation-environment: setting UID=1000
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting XRDP_SESSION=1
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting PWD=/home/myuser
xfce4-session-Message: 07:19:28.648: SSH authentication agent is already running
gpg-agent: a gpg-agent is already running - not starting a new one
/home/myuser/.xsession: line 1: 18732 Segmentation fault      xfce4-session

虽然分段错误的致命错误是软件本身的错误,修复超出了我们的范围,但我的用例非常常见,没有什么特别的额外内容,我可能错过了一些简单的配置和/或安装步骤。另请注意,我在我的 Azure 主机和 Docker 主机上都重现了完全相同的问题,因此那些图像细节和 infa 细节都不起作用……

我可能会错过什么呢?

相关内容