[pitivi] bin: Handle gi typelib path
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] bin: Handle gi typelib path
- Date: Tue, 3 Dec 2013 16:31:29 +0000 (UTC)
commit 3e81644e6aaaef49d42e0c2d0a376b588351d80f
Author: Thibault Saunier <thibault saunier collabora com>
Date: Tue Dec 3 13:21:38 2013 -0300
bin: Handle gi typelib path
bin/pitivi.in | 4 ++++
configure.ac | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/bin/pitivi.in b/bin/pitivi.in
index 04fd508..15e4ee2 100644
--- a/bin/pitivi.in
+++ b/bin/pitivi.in
@@ -27,6 +27,7 @@ import locale
import gettext
CONFIGURED_PYTHONPATH = '@CONFIGURED_PYTHONPATH@'
+CONFIGURED_GI_TYPELIB_PATH = '@CONFIGURED_GI_TYPELIB_PATH@'
CONFIGURED_LD_LIBRARY_PATH = '@CONFIGURED_LD_LIBRARY_PATH@'
CONFIGURED_GST_PLUGIN_PATH = '@CONFIGURED_GST_PLUGIN_PATH@'
LIBDIR = '@LIBDIR@'
@@ -93,6 +94,9 @@ def _add_pitivi_path():
# ld caches LD_LIBRARY_PATH at startup so we need to execv() here. LALA.
jump_through_hoops()
+ if CONFIGURED_GI_TYPELIB_PATH:
+ _prepend_env_path("GI_TYPELIB_PATH", [CONFIGURED_GI_TYPELIB_PATH])
+
def _check_dependencies():
from pitivi.check import check_hard_dependencies, check_soft_dependencies
diff --git a/configure.ac b/configure.ac
index 00a8c72..c82066a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,9 @@ AC_SUBST(CONFIGURED_LD_LIBRARY_PATH)
CONFIGURED_GST_PLUGIN_PATH=$GST_PLUGIN_PATH
AC_SUBST(CONFIGURED_GST_PLUGIN_PATH)
+CONFIGURED_GI_TYPELIB_PATH=$GI_TYPELIB_PATH
+AC_SUBST(CONFIGURED_GI_TYPELIB_PATH)
+
AC_CONFIG_FILES([bin/pitivi], [chmod +x bin/pitivi])
PKG_CHECK_MODULES([cairo], [cairo])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]