1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-14 04:15:37 +00:00
Purism-Calls/run.in
Evangelos Ribeiro Tzaras c520bdae70 run: Allow passing arguments to calls when running under gdb
Without this patch running f.e. `CALLS_GDB=1 _build/run -p sip` will not work.
2021-06-18 16:50:11 +02:00

16 lines
335 B
Bash
Executable file

#!/bin/sh
set -e
ABS_BUILDDIR='@ABS_BUILDDIR@'
ABS_SRCDIR='@ABS_SRCDIR@'
if [ "${CALLS_GDB}" = 1 ]; then
echo "Running calls under gdb"
WRAPPER="gdb --args"
fi
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
export CALLS_PLUGIN_DIR="${ABS_BUILDDIR}/plugins"
set -x
exec ${WRAPPER} "${ABS_BUILDDIR}/src/gnome-calls" "$@"