about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2005-03-24 19:09:25 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2005-03-24 19:09:25 +0000
commit35744737039035cd2029b0f248ffa136760fb1dc (patch)
tree72ed61bf50cde7a322cc338281461365b1335103 /Completion
parent05291f7e2ddba5a942a50f6c3241ce5b253eaa4c (diff)
downloadzsh-35744737039035cd2029b0f248ffa136760fb1dc.tar.gz
zsh-35744737039035cd2029b0f248ffa136760fb1dc.tar.xz
zsh-35744737039035cd2029b0f248ffa136760fb1dc.zip
21053: be more intelligent in searching for konqueror profiles
Diffstat (limited to 'Completion')
-rwxr-xr-xCompletion/X/Command/_kfmclient3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/X/Command/_kfmclient b/Completion/X/Command/_kfmclient
index 10d7a2ccb..6302e0074 100755
--- a/Completion/X/Command/_kfmclient
+++ b/Completion/X/Command/_kfmclient
@@ -73,8 +73,9 @@ case $line[1] in
     _webbrowser
     return
   elif [[ $state = firstarg ]]; then
+    local appdata=${$(kde-config --path data 2> /dev/null):-~/.kde/share/apps/}
     _wanted profile expl 'Konqueror profile' \
-      compadd -- ~/.kde/share/apps/konqueror/profiles/*(:t)
+      compadd -- ${(s/:/)^${appdata}}konqueror/profiles/*(:t)
     return
   fi
   ;;