Table of Contents

Show debug console

qdbus org.kde.KWin /KWin org.kde.KWin.showDebugConsole

Show support information

qdbus org.kde.KWin /KWin supportInformation

Query window info

qdbus org.kde.KWin /KWin org.kde.KWin.queryWindowInfo

WIP - Enable VNC server remotely

WIP - but has some success so far.
Find out relevant environment variables by checking /proc/$pid/environ of a existing process.

XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_DESKTOP=KDE XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 WAYLAND_DISPLAY=wayland-0 krfb --nodialog

XDG_SESSION_TYPE=wayland WAYLAND_DISPLAY=wayland-0 krfb --nodialog

If password and settings has not already been set.

kwalletcli -f krfb -e unattendedAccessPassword -P

XDG_SESSION_TYPE=wayland XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_DESKTOP=KDE XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 WAYLAND_DISPLAY=wayland-0 DISPLAY=:1 kwalletcli -f krfb -e unattendedAccessPassword -p somepw

Also these bugs can be a problem

https://bugs.kde.org/show_bug.cgi?id=435338 https://invent.kde.org/network/krfb/-/merge_requests/44/diffs?commit_id=01c775f2e89b705d8375c0ccc0543fc82be53414

krfbrc

cat ~/.config/krfbrc  
[FrameBuffer]
preferredFrameBufferPlugin=pw

[MainWindow]
RestorePositionForNextInstance=false
State=AAAA/wAAAAD9AAAAAAAAAlgAAAF/AAAABAAAAAQAAAAIAAAACPwAAAAA
ToolBarsMovable=Disabled

[Security]
allowUnattendedAccess=true

[TCP]
publishService=false