tessen

default description
git clone https://git.awy.one/tessen.git
Log | Files | Refs | README | LICENSE

commit 79da12522facaaf1fe087fbb941b6cb1e7b18f66
parent d45e9b165ce48d0655a4f4b5cab8beef65eae38a
Author: Ayush Agarwal <ayushnix@fastmail.com>
Date:   Thu, 30 Mar 2023 14:14:24 +0530

fix: yofi dialog option should be after its flags

This should finally fix https://github.com/ayushnix/tessen/issues/36

Diffstat:
Mtessen | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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