---
cat <<'EOF' | sudo tee /etc/xdg/autostart/launch-xwayland.desktop
[Desktop Entry]
Name=Launch XWayland on startup
Exec=sh -c 'if [ "x$XDG_SESSION_TYPE" = "xwayland" ] ; then xrefresh; fi'
TryExec=xrefresh
Type=Application
EOF
---
* xrefresh just refresh X screen.
* if there is no ibus, this command will startup xwayland and refresh screen only.
* if there is ibus, Mutter will startup XWayland and GNOME Shell restart ibus-daemon with --xim option
* at the moment, Mutter doesn't remove xwayland even if all x11 apps exited.
> 4. restart IBus automatically when log in
More simple, but identical workaround:
--- autostart/ launch- xwayland. desktop SESSION_ TYPE" = "xwayland" ] ; then xrefresh; fi'
cat <<'EOF' | sudo tee /etc/xdg/
[Desktop Entry]
Name=Launch XWayland on startup
Exec=sh -c 'if [ "x$XDG_
TryExec=xrefresh
Type=Application
EOF
---
* xrefresh just refresh X screen.
* if there is no ibus, this command will startup xwayland and refresh screen only.
* if there is ibus, Mutter will startup XWayland and GNOME Shell restart ibus-daemon with --xim option
* at the moment, Mutter doesn't remove xwayland even if all x11 apps exited.