From 75cf7151588927122d696dc1daa95fee1ba43644 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Wed, 30 Mar 2016 17:59:02 +0200 Subject: [PATCH] make rofi command a function to eliminate problems with quotes options. Should fix #33 once and for all --- config.example | 10 +++++----- rofi-pass | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.example b/config.example index 1cd5102..31a6c1d 100644 --- a/config.example +++ b/config.example @@ -1,11 +1,11 @@ # permanently set alternative root dir # root=/path/to/root -# optional rofi parameters: -# keep in mind that 0.15.7 has different arguments compared to -# latest git. for rofi-pass this means that "-i" will not work with -# 0.15.7. -rofiopts="-i -width 700 -no-levenshtein-sort" +# rofi command. Make sure to have "$@" as last argument +_rofi () { + rofi -z -i -width 700 -no-levenshtein-sort "$@" +} + # fields to be used URL_field='url' diff --git a/rofi-pass b/rofi-pass index 5a64425..5edbbc2 100755 --- a/rofi-pass +++ b/rofi-pass @@ -462,9 +462,9 @@ password_gen () { fi } -function _rofi () { - rofi -dmenu -z "${rofiopts}" "$@" -} +#function _rofi () { +# rofi -dmenu -z ${rofiopts} "$@" +#} help_msg () { echo "rofi-pass (Version: 1.2)"