Run agl-compositor in system scope for QEMU+KVM demo image
[AGL/meta-agl-demo.git] / recipes-extended / agl-qemu-runner / files / agl-qemu-runner.sh
index d127647..d050bdb 100755 (executable)
@@ -37,7 +37,7 @@ if [ -n "$QEMU_TASKSET_CPUS" ]; then
 fi
     
 export SDL_VIDEODRIVER=wayland 
-export XDG_RUNTIME_DIR=/run/user/1001
+export XDG_RUNTIME_DIR=/run/user/200
 # The following may be needed if the socket is not wayland-0, as SDL
 # seems to lack detection logic for that case.
 #export WAYLAND_DISPLAY=wayland-1
@@ -58,14 +58,14 @@ qemu-system-${arch} \
        -drive id=disk0,file=${disk},format=raw,if=none \
        -serial mon:pty \
        -object rng-random,filename=/dev/urandom,id=rng0 \
-       -netdev user,id=net-user \
        -device virtio-blk-device,drive=disk0 \
-       -device virtio-net-device,netdev=net-user,mac=52:54:00:12:00:02 \
        -device virtio-rng-device,rng=rng0 \
+       ${QEMU_NET_OPT} \
        ${QEMU_INPUT_OPT} \
        -global virtio-mmio.force-legacy=false \
        -device virtio-gpu-gl-device \
        -display sdl,gl=on -vga std \
-               ${QEMU_AUDIO_OPT} \
-               ${QEMU_EXTRA_OPT} \
+       ${QEMU_AUDIO_OPT} \
+       ${QEMU_CAN_OPT} \
+       ${QEMU_EXTRA_OPT} \
        -full-screen