fogine / rofi-search

Interactive Google / DuckDuckGo search via rofi
MIT License
100 stars 7 forks source link

rofi-search spawns rofi #8

Closed marcbenedi closed 3 years ago

marcbenedi commented 3 years ago

Greetings,

For what I could find, rofi-search spawns internally rofi which makes it incompatible with the provided examples.

$ rofi -modi blocks -blocks-wrap rofi-search -show blocks

(process:773472): Helper-WARNING **: 00:15:00.469: Failed to set lock on pidfile: Rofi already running?

(process:773472): Helper-WARNING **: 00:15:00.469: Got error: -1 Socket operation on non-socket
BlocksMode-Message: 00:15:00.474: Child 773464 exited normally

image

image

Is there a solution for that? If rofi-search spawns rofi internally, it would be nice to be able to pass arguments to rofi. Otherwise rofi should not be launched internally.

fogine commented 3 years ago

It needs ROFI_SEARCH env variable set (as shown in the readme examples) prior executing rofi command. Just copy paste one of the provided examples and edit it to your needs..

marcbenedi commented 3 years ago

I specified the variable ROFI_SEARCH as you specified and it works. However, in the documentation they only say that this variable is to specify the search tool, but it seems that it's actually mandatory to define it.