e8e13cb593
- Drop Python2 support (using pyupgrade --py3-plus *.py) - Make it possible to use keys with Unicode keysyms in keybindings (requires ibus > 1.5.30) (Resolves: https://github.com/mike-fabian/ibus-typing-booster/issues/497, same problem for ibus-table) - Use `frames_per_buffer=chunk_size` option in `self._paudio.open()` (Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2238746#c3) - Translation update from Weblate (cs 36.6%, ja 45.3%, zh_CN 92.0%) - Convert to rpm-autospec
33 lines
903 B
Bash
Executable File
33 lines
903 B
Bash
Executable File
#!/bin/bash
|
|
# Run this with `xwfb-run -e /tmp/xwfb-run.log -n 99 xwfb-script.sh`
|
|
|
|
# Redirect stderr to stdout:
|
|
exec 2>&1
|
|
# without setting GDK_BACKEND=x11, Gtk programs cannot open windows in xfwb-run:
|
|
export GDK_BACKEND=x11
|
|
export XDG_SESSION_TYPE=x11
|
|
echo "starting mutter ..."
|
|
mutter --x11 &
|
|
sleep 5
|
|
echo "mutter started"
|
|
ibus-daemon --verbose \
|
|
--replace \
|
|
--single \
|
|
--desktop=mutter \
|
|
--panel=disable \
|
|
--config=disable &
|
|
sleep 5
|
|
echo "ibus-daemon started."
|
|
pushd /usr/share/ibus-table/engine
|
|
/usr/libexec/installed-tests/ibus-table/test_0_gtk.py -v &
|
|
TEST_PID=$!
|
|
# A screenshot for debugging can be made here:
|
|
#sleep 1
|
|
#import -window root /tmp/screenshot.png
|
|
#echo "screenshot done."
|
|
# Wait for test_0_gtk.py to finish and get its exit code
|
|
wait $TEST_PID
|
|
EXIT_CODE=$?
|
|
echo "The exit code of test_0_gtk.py: $EXIT_CODE"
|
|
exit $EXIT_CODE
|