gmagno / rofi-ddgr

A rofi-script to run ddgr
MIT License
5 stars 0 forks source link

rofi-window shows up and one can type chars into it, but nothing else happens #1

Closed rtng closed 1 year ago

rtng commented 1 year ago

OS: Debian GNU/Linux 11 (bullseye) x86_64 Kernel: 5.10.0-20-amd64 WM: IceWM 2.1.2 (Linux/x86_64) rofi Version: 1.5.4 ddgr Version: 1.9 Python 3.9.2

1) running '$rofi -lines 5 -eh 3 -show ddgrsearch -modi "ddgrsearch:ddgr_search.sh" ' prompts (german):

in english that might be:

with running this the rofi-window shows up and one can type chars into it, but nothing else happens.

2) running '$bash -x ddgr_search.sh' prompts:

gmagno commented 1 year ago

Thanks for raising the issue.

Replacing, in ddgr_search.sh, the test expressions with double brackets if [[ ... ]] test should fix the issue. I will create the PR shortly.