From 79da12522facaaf1fe087fbb941b6cb1e7b18f66 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Thu, 30 Mar 2023 14:14:24 +0530 Subject: fix: yofi dialog option should be after its flags This should finally fix https://github.com/ayushnix/tessen/issues/36 --- tessen | 6 +++--- 1 file 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 -- cgit v1.2.3