helpers/gst: Get bash completion options from gst-launch

It is more likely that gst-launch is installed than ges-launch

Reported-by: Marianna Smidth Buschle <msb@qtec.com>

https://bugzilla.gnome.org/show_bug.cgi?id=775714
This commit is contained in:
Ricardo Ribalda Delgado 2016-12-06 16:27:23 +01:00 committed by Tim-Philipp Müller
parent efc6264c37
commit 0728b9b59b

View file

@ -28,7 +28,7 @@ _gst_mandatory_argument ()
{
if [[ "$prev" != "$command" ]]
then
COMPREPLY=( $(compgen -W "$(ges-launch-1.0 --help-all | grep -oh '[[:graph:]]*--[[:graph:]]*' | cut -d'=' -f1)" -- $cur) )
COMPREPLY=( $(compgen -W "$(gst-launch-1.0 --help-all | grep -oh '[[:graph:]]*--[[:graph:]]*' | cut -d'=' -f1)" -- $cur) )
else
COMPREPLY=("$cur")
fi