[ Content contribution] deepin wsl 更新 1.0.3.0 版本
Tofloor
poster avatar
空木蓮華
deepin
2024-09-03 15:08
Author

deepin 23 发版,deepin-WSL 更新版本。

更新日志

  • 新增预装包 curl,vim,ssh,net-tools,iputils,ping,lshw,iproute2,iptables,procps
  • 添加 /etc/wsl.conf 默认开启 systemd, 保证服务启动正常。
Reply Favorite View the author
All Replies
sudo~
deepin
2024-09-03 15:11
#1

like

Reply View the author
shalling
Deepin Wiki Editor
2024-09-03 15:17
#2

👍

Reply View the author
jjcui8595
deepin
2024-09-03 16:26
#3

提供个链接呀!虽然我不用WSLjoy

Reply View the author
空木蓮華
deepin
2024-09-03 16:59
#4
jjcui8595

提供个链接呀!虽然我不用WSLjoy

微软应用商店,家人们。或者Github 上,https://github.com/deepin-community/deepin-WSL/releases/tag/v1.0.3.0-x64

Reply View the author
jjcui8595
deepin
2024-09-03 20:24
#5
空木蓮華

微软应用商店,家人们。或者Github 上,https://github.com/deepin-community/deepin-WSL/releases/tag/v1.0.3.0-x64

like

Reply View the author
xiongweixp
deepin
2024-09-04 09:08
#6

WSL中很多deepin应用菜单显示不全,无法操作,有什么解决方法么?
屏幕截图 2024-09-04 090710.png

Reply View the author
空木蓮華
deepin
2024-09-04 10:39
#7
xiongweixp

WSL中很多deepin应用菜单显示不全,无法操作,有什么解决方法么?
屏幕截图 2024-09-04 090710.png

你试试安装下这些包看看sudo apt install fonts-noto-cjk dde-qt5integration dde-qt5wayland-plugin

Reply View the author
xiongweixp
deepin
2024-09-04 16:38
#8
空木蓮華

你试试安装下这些包看看sudo apt install fonts-noto-cjk dde-qt5integration dde-qt5wayland-plugin

测试了,一样的,没用

Reply View the author
空木蓮華
deepin
2024-09-04 17:10
#9
xiongweixp

测试了,一样的,没用

wslg 应用起来的时候窗管是wayland 模式的,这会导致本来在 X11 模式下正常的应用,会因为不是在 X11 模式下,xcb定位不准确,在这里回显示不正常。
想要稍微正常使用,可以在 wsl 中加入环境变量,

export XDG_SESSION_TYPE="wayland"

在deepin系统下应用标题栏绘制由窗管进行管理,在使用wslg的wayland模式下,使用的是weston管理的,应用的标题栏会被绘制,右键菜单栏这些定位会正常。

Reply View the author
xiongweixp
deepin
2024-09-05 10:34
#10
空木蓮華

wslg 应用起来的时候窗管是wayland 模式的,这会导致本来在 X11 模式下正常的应用,会因为不是在 X11 模式下,xcb定位不准确,在这里回显示不正常。
想要稍微正常使用,可以在 wsl 中加入环境变量,

export XDG_SESSION_TYPE="wayland"

在deepin系统下应用标题栏绘制由窗管进行管理,在使用wslg的wayland模式下,使用的是weston管理的,应用的标题栏会被绘制,右键菜单栏这些定位会正常。

加了这个环境变量,直接报段错误:

libEGL warning: egl: failed to create dri2 screen
2024-09-05, 10:34:04.316 [Warning] [ ] QObject::connect(KWayland::Client::DDESeat, KWayland::Client::DDEPointer): invalid nullptr parameter
2024-09-05, 10:34:04.316 [Warning] [ ] QObject::connect(KWayland::Client::DDESeat, KWayland::Client::DDEPointer): invalid nullptr parameter
Segmentation fault

Reply View the author
空木蓮華
deepin
2024-09-05 17:55
#11
xiongweixp

加了这个环境变量,直接报段错误:

libEGL warning: egl: failed to create dri2 screen
2024-09-05, 10:34:04.316 [Warning] [ ] QObject::connect(KWayland::Client::DDESeat, KWayland::Client::DDEPointer): invalid nullptr parameter
2024-09-05, 10:34:04.316 [Warning] [ ] QObject::connect(KWayland::Client::DDESeat, KWayland::Client::DDEPointer): invalid nullptr parameter
Segmentation fault

没什么很好的办法,这个自研应用在kwin窗管显示正常,在
weston这个wayland窗管的效果不一定正常。

Reply View the author
winee
deepin
2024-09-10 13:16
#12
空木蓮華

没什么很好的办法,这个自研应用在kwin窗管显示正常,在
weston这个wayland窗管的效果不一定正常。

这个是因为很多DDE客户端写死了 QT_WAYLAND_SHELL_INTEGRATION=kwayland-shell,导致不能在 kwin 以外的窗管使用,一般删了这行就行


qputenv("QT_WAYLAND_SHELL_INTEGRATION", "kwayland-shell");

以后适配 Treeland 也要删

Reply View the author