Commit 2ae38465 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

run_canon_fw.sh: on Mac, bring QEMU window to foreground

(by default, the window is opened behind the terminal, so one may not even notice it)

--HG--
branch : qemu
parent e84ed9e23efe
......@@ -88,6 +88,12 @@ else
echo "DebugMsg=$QEMU_EOS_DEBUGMSG (overriden)"
fi
# Mac: bring QEMU window to foreground
# fixme: easier way?
if [ -t 1 ] && [ $(uname) == "Darwin" ]; then
( sleep 0.5; osascript -e 'tell application "System Events" to tell process qemu-system-arm to set frontmost to true' ) &
fi
# run the emulation
env QEMU_EOS_DEBUGMSG="$QEMU_EOS_DEBUGMSG" \
$QEMU_PATH/arm-softmmu/qemu-system-arm \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment