Fix appdirs type

This should be array not associative array. And fix its usage too
to pass it to _files correctly
This commit is contained in:
Shohei YOSHIDA 2025-12-23 13:14:42 +09:00
parent 2cff35a45d
commit 779f02a78b
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 3 additions and 3 deletions

View File

@ -22,9 +22,9 @@ _xdg-mime_query() {
_xdg-mime() {
local line
local -A appdirs=(
local -a appdirs=(
/usr/share/applications
$HOME/.local/share/applications
"$HOME/.local/share/applications"
)
_arguments -C \
@ -38,7 +38,7 @@ _xdg-mime() {
query) _xdg-mime_query ;;
default)
_arguments \
"1:Application:_files -W '$appdirs' -g '*.desktop'" \
"1:Application:_files -W appdirs -g '*.desktop'" \
'2: :_mime_types'
;;
install)