From ab74bd4da988e17665ac2769ddedf23980e05ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 30 Nov 2009 23:16:08 +0200 Subject: [PATCH] Redirect dcop/qdbus stderr to /dev/null. Even if we have e.g. dcop installed we may not have dcopserver running and providing completions. --- contrib/qdbus | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/qdbus b/contrib/qdbus index bc5252c6..e153a761 100644 --- a/contrib/qdbus +++ b/contrib/qdbus @@ -8,8 +8,8 @@ _qdbus() COMPREPLY=() cur=`_get_cword` [ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1] - COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \ - -- "$cur" ) ) + COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} 2>/dev/null | \ + sed s/\(.*\)// )' -- "$cur" ) ) } && complete -F _qdbus qdbus dcop