dbus-launch is X11-specific and contains a lot of legacy code to
support X11 autolaunching. It should not be part of the Wayland
future.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836067
https://bugzilla.gnome.org/show_bug.cgi?id=771455
srcdir=$PWD/`dirname $0`
topsrcdir=$srcdir/..
vapidir=$topsrcdir/vapi
+run_prefix=""
export G_DEBUG=fatal_warnings
ns=${ns//-/_}
SOURCEFILE=$ns.vala
elif [ "$1" = "D-Bus" ]; then
- echo 'eval `dbus-launch --sh-syntax`' >> prepare
- echo 'trap "kill $DBUS_SESSION_BUS_PID" INT TERM EXIT' >> prepare
+ run_prefix="dbus-run-session -- $run_prefix"
elif [ "$1" = "GIR" ]; then
GIRTEST=1
fi
cat << EOF >> checkall
echo -n -e " /$testpath: \033[72G"
((all++))
-if bash $ns.check &>log; then
+if $run_prefix bash $ns.check &>log; then
echo -e "\033[0;32mOK\033[m"
else
((fail++))