about summary refs log tree commit diff
path: root/Completion/X/Command/_kfmclient
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/X/Command/_kfmclient')
-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
   ;;