summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Agarwal <ayushnix@fastmail.com>2023-03-30 14:14:24 +0530
committerAyush Agarwal <ayushnix@fastmail.com>2023-03-30 14:27:34 +0530
commit79da12522facaaf1fe087fbb941b6cb1e7b18f66 (patch)
tree210c3792d37ed556d8fb30b4d0ade7c65d6f24ce
parentd45e9b165ce48d0655a4f4b5cab8beef65eae38a (diff)
fix: yofi dialog option should be after its flags
This should finally fix https://github.com/ayushnix/tessen/issues/36
-rwxr-xr-xtessen6
1 files changed, 3 insertions, 3 deletions
diff --git a/tessen b/tessen
index c890613..416b876 100755
--- a/tessen
+++ b/tessen
@@ -466,7 +466,7 @@ validate_dmenu_backend() {
yofi)
_DMENU_BACKEND="yofi"
# yofi needs the 'dialog' option after the '--config-file' argument
- _DMENU_BACKEND_OPTS=()
+ _DMENU_BACKEND_OPTS=('dialog')
;;
wofi)
_DMENU_BACKEND="wofi"
@@ -662,7 +662,7 @@ parse_config() {
elif [[ $key == "wofi_color_file" ]] && [[ -f ${val@P} ]]; then
_TMP_WOFI_OPTS+=("-C" "${val@P}")
elif [[ $key == "yofi_config_file" ]] && [[ -f ${val@P} ]]; then
- _TMP_YOFI_OPTS+=("--config-file" "${val@P}" "dialog")
+ _TMP_YOFI_OPTS+=("--config-file" "${val@P}")
elif [[ $key == "userkey" ]]; then
_TSN_USERKEY="$val"
elif [[ $key == "urlkey" ]]; then
@@ -792,7 +792,7 @@ main() {
_DMENU_BACKEND_OPTS+=("${_TMP_WOFI_OPTS[@]}")
readonly _DMENU_BACKEND_OPTS
elif [[ $_DMENU_BACKEND == "yofi" ]]; then
- _DMENU_BACKEND_OPTS+=("${_TMP_YOFI_OPTS[@]}")
+ _DMENU_BACKEND_OPTS=("${_TMP_YOFI_OPTS[@]}" "$_DMENU_BACKEND_OPTS")
readonly _DMENU_BACKEND_OPTS
fi