skift-org / skift

🥑 A modern delightful operating system
https://skiftos.org/
GNU Lesser General Public License v3.0
2.36k stars 130 forks source link

Change qemu setup to support GTK and allow Ctrl+C quit #417

Closed masterneko closed 10 months ago

masterneko commented 10 months ago

In building.md, under the build and run section it says:

[!NOTE] Running this step requires being in a graphical environment with a build of QEMU supporting graphics either via SDL or GTK. If you are using a headless server, you can use the ./skift.sh image build --format=hdd command to build a disk image.

However a qemu without SDL would result in

qemu-system-x86_64: Display 'sdl' is not available.

So I fixed that. Also I thought it would be a good idea to swap -mon:stdio with -chardev stdio,id=char0,signal=on -serial chardev:char0 for compatibility with escape signals (eg. Ctrl+C). I'm not sure if this is what you want but I can undo if necessary.

sleepy-monax commented 10 months ago

LGTML