mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
cmake: ensure there is session bus when executing tests
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6e9cca36ab
commit
0884e9c63e
1 changed files with 3 additions and 0 deletions
|
@ -18,4 +18,7 @@ bin="$1"
|
|||
shift
|
||||
|
||||
cd "$(dirname "$bin")"
|
||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ];then
|
||||
exec dbus-run-session -- @CMAKE_CROSSCOMPILING_EMULATOR@ "./$(basename "$bin")" "$@"
|
||||
fi
|
||||
exec @CMAKE_CROSSCOMPILING_EMULATOR@ "./$(basename "$bin")" "$@"
|
||||
|
|
Loading…
Add table
Reference in a new issue