run-nested-visible.sh 771 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. # Launches the nested mjdev compositor VISIBLY (window on the user's screen) with the
  3. # desktop shell + a test app. Run this inside a visible terminal so the user can watch
  4. # it live. Logs are tee'd so they can also be inspected.
  5. set -u
  6. cd /home/mimo/Plocha/mjdev-desktop
  7. export DISPLAY=:0 WLR_BACKENDS=x11 MJDEVC_OUTPUT=1280x720
  8. for f in /run/user/1000/.mutter-Xwaylandauth.*; do [ -f "$f" ] && export XAUTHORITY="$f"; done
  9. unset WAYLAND_DISPLAY
  10. BIN=compositor/build/bin/linuxX64/mjdevcReleaseExecutable/mjdevc.kexe
  11. LAUNCH=packages/main/app/mjdev-desktop/bin/mjdev-desktop
  12. echo "== launching mjdevc =="
  13. "$BIN" --shell-cmd "$LAUNCH" --startup "sleep 9; exec gnome-calculator" 2>&1 \
  14. | tee /home/mimo/Plocha/mjdev-desktop/compositor/build/nested.log