libmks/README.md
Christian Hergert 0e1c0a7d10 Merge branch 'bilelmoussaoui-main-patch-78694' into 'main'
readme: Add a link to the docs

See merge request chergert/libmks!9
2023-04-20 20:42:27 +00:00

852 B

libmks

This library provides a "Mouse, Keyboard, and Screen" to Qemu using the D-Bus device support in Qemu and GTK 4.

Documentation

Nightly documentation can be found here.

Testing

By default, Qemu will connect to your user session D-Bus if you do not provide an address for -display dbus. Therefore, it is pretty easy to test things by running Qemu manually and then connecting with the test program ./tools/mks.

qemu-img create -f qcow2 fedora.img 30G
qemu-system-x86_64 \
    -enable-kvm \
    -cpu host \
    -device virtio-vga-gl,xres=1920,yres=1080 \
    -m 8G \
    -smp 4 \
    -display dbus,gl=on \
    -cdrom Fedora-Workstation.iso \
    -hda fedora.img \
    -boot d

and then to run the test widget

meson setup build
cd build
ninja
./tools/mks