Skip to content

Commit 35f88a6

Browse files
committed
xsettings: start after treeland-sd.service to avoid crash on Wayland
The XSettings service uses QGuiApplication with the xcb platform plugin, which requires an X11 connection (via XWayland). On treeland/Wayland sessions, XWayland may not be ready yet when this service starts as part of dde-session-pre.target, causing a crash loop. Add After=treeland-sd.service to ensure the service only starts after treeland (which launches XWayland) is ready. This ordering is safely ignored on pure X11 sessions where treeland-sd.service doesn't exist.
1 parent 6cefac6 commit 35f88a6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/plugin-qt/xsettings/misc/org.deepin.dde.XSettings1.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CollectMode=inactive-or-failed
66

77
PartOf=dde-session-pre.target
88
Before=dde-session-pre.target
9+
After=treeland-sd.service
910

1011
Before=org.dde.session.Daemon1.service
1112

0 commit comments

Comments
 (0)