mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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
This commit is contained in:
parent
b46aa21ed4
commit
cca62a11f5
1 changed files with 8 additions and 1 deletions
|
@ -329,7 +329,7 @@ def get_subprocess_env(options, gst_version):
|
||||||
prepend_env_var(env, 'PYTHONPATH', mesonpath, options.sysroot)
|
prepend_env_var(env, 'PYTHONPATH', mesonpath, options.sysroot)
|
||||||
|
|
||||||
# For devhelp books
|
# 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
|
# Preserve default paths when empty
|
||||||
prepend_env_var(env, 'XDG_DATA_DIRS', '/usr/local/share/:/usr/share/', '')
|
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'),
|
'GStreamer-doc'),
|
||||||
options.sysroot)
|
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
|
return env
|
||||||
|
|
||||||
def get_windows_shell():
|
def get_windows_shell():
|
||||||
|
|
Loading…
Reference in a new issue