1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

run: Run under gdb when CALLS_GDB is set to 1

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-06-18 10:21:28 +02:00
parent 4948148bfe
commit 4324f683e7

7
run.in
View file

@ -4,8 +4,13 @@ set -e
ABS_BUILDDIR='@ABS_BUILDDIR@'
ABS_SRCDIR='@ABS_SRCDIR@'
if [ "${CALLS_GDB}" = 1 ]; then
echo "Running calls under gdb"
WRAPPER="gdb"
fi
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
export CALLS_PLUGIN_DIR="${ABS_BUILDDIR}/plugins"
set -x
exec "${ABS_BUILDDIR}/src/gnome-calls" "$@"
exec ${WRAPPER} "${ABS_BUILDDIR}/src/gnome-calls" "$@"