diff options
author | Ayush Agarwal <ayushnix@fastmail.com> | 2023-03-30 14:14:24 +0530 |
---|---|---|
committer | Ayush Agarwal <ayushnix@fastmail.com> | 2023-03-30 14:27:34 +0530 |
commit | 79da12522facaaf1fe087fbb941b6cb1e7b18f66 (patch) | |
tree | 210c3792d37ed556d8fb30b4d0ade7c65d6f24ce | |
parent | d45e9b165ce48d0655a4f4b5cab8beef65eae38a (diff) |
fix: yofi dialog option should be after its flags
This should finally fix https://github.com/ayushnix/tessen/issues/36
-rwxr-xr-x | tessen | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |