summaryrefslogtreecommitdiff
path: root/gst-env.py
diff options
context:
space:
mode:
authorJulien Isorce <jisorce@oblong.com>2019-12-21 11:01:47 -0800
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-12-23 09:38:59 +0000
commitcca62a11f5ac5c3666ff17d28ffbd0231fc51f6c (patch)
tree3056df9d0a9fccd1970e92fb551bed9b22422a54 /gst-env.py
parentb46aa21ed43ebf29b84d3efe93d3fc7ff923db9d (diff)
downloadgstreamer-cca62a11f5ac5c3666ff17d28ffbd0231fc51f6c.tar.gz
env: preprend gst-build/prefix/etc/xdg to XDG_CONFIG_DIRS
So gst-build/prefix/etc/xdg/tizonia/tizonia.conf can be found. Which one contains path to tizonia plugins. Useful when compiling tizonia-openmax-il and installing it in gst-build 's prefix location: autoreconf -ifs ./configure --disable-player --without-libspotify --prefix=path_to_gst-build/prefix/ make && make install Allows the following to work: gst-launch-1.0 videotestsrc ! vp8enc ! omxvp8dec ! xvimagesink
Diffstat (limited to 'gst-env.py')
-rwxr-xr-xgst-env.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/gst-env.py b/gst-env.py
index 44faf7b31b..2f83fc1b82 100755
--- a/gst-env.py
+++ b/gst-env.py
@@ -329,7 +329,7 @@ def get_subprocess_env(options, gst_version):
prepend_env_var(env, 'PYTHONPATH', mesonpath, options.sysroot)
# For devhelp books
- if not 'XDG_DATA_DIRS' in env or not env['XDG_DATA_DIRS']:
+ if 'XDG_DATA_DIRS' not in env or not env['XDG_DATA_DIRS']:
# Preserve default paths when empty
prepend_env_var(env, 'XDG_DATA_DIRS', '/usr/local/share/:/usr/share/', '')
@@ -339,6 +339,13 @@ def get_subprocess_env(options, gst_version):
'GStreamer-doc'),
options.sysroot)
+ if 'XDG_CONFIG_DIRS' not in env or not env['XDG_CONFIG_DIRS']:
+ # Preserve default paths when empty
+ prepend_env_var(env, 'XDG_CONFIG_DIRS', '/etc/local/xdg:/etc/xdg', '')
+
+ prepend_env_var(env, "XDG_CONFIG_DIRS", os.path.join(PREFIX_DIR, 'etc', 'xdg'),
+ options.sysroot)
+
return env
def get_windows_shell():