[tracker/sam/test-fixes: 2/7] trackertestutils: Fix tracker-sandbox startup when installed outside /usr
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/test-fixes: 2/7] trackertestutils: Fix tracker-sandbox startup when installed outside /usr
- Date: Fri, 1 May 2020 23:23:52 +0000 (UTC)
commit f3913b15e801327c48b40320ba809d40036c3b75
Author: Sam Thursfield <sam afuera me uk>
Date: Mon Apr 27 19:22:46 2020 +0200
trackertestutils: Fix tracker-sandbox startup when installed outside /usr
If Tracker is installed into /opt/tracker3 for example then the
introspection data will be missed. Let's make this just work.
utils/trackertestutils/meson.build | 1 +
utils/trackertestutils/tracker-sandbox.in | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/utils/trackertestutils/meson.build b/utils/trackertestutils/meson.build
index e5132b066..3ccfa6b18 100644
--- a/utils/trackertestutils/meson.build
+++ b/utils/trackertestutils/meson.build
@@ -20,6 +20,7 @@ if get_option('test_utils')
install_data(sources, install_dir: testutils_dir / 'trackertestutils')
script_conf = configuration_data()
+ script_conf.set('libdir', get_option('libdir'))
script_conf.set('prefix', get_option('prefix'))
script_conf.set('testutils_dir', testutils_dir)
configure_file(
diff --git a/utils/trackertestutils/tracker-sandbox.in b/utils/trackertestutils/tracker-sandbox.in
index 4c47755a0..18f18d9f2 100755
--- a/utils/trackertestutils/tracker-sandbox.in
+++ b/utils/trackertestutils/tracker-sandbox.in
@@ -1,5 +1,6 @@
#!/bin/sh
+export GI_TYPELIB_PATH=@libdir@/girepository-1.0/:$GI_TYPELIB_PATH
export PYTHONPATH=@testutils_dir@
python3 -m trackertestutils --prefix=@prefix@ $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]