zquestz / s

Open a web search in your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

s fails silently

anka-213 opened this issue · comments

I know this is not very helpful, but when I try to search with s, nothing happens. If I run with -v, I get the search url. If I run with --verson I get the version s 0.5.6. In all cases, exit code 0.

I need more details. What OS are you using? What exact commands are you issuing?

Arch linux. Installed with the aur-package. For example, when running "s
hello", nothing happens.

By default s uses xdg-open to open the URLs. It seems that xdg-open does not actually work on your machine but it is very easy to replace the default binary that gets executed.

You can pass in a different binary via the -b flag.

s -b "firefox" <search>

Or you can adjust the binary permanently through the config file. Just create a file ~/.s/config and include the following:

binary: </path/to/binary>

Yes, that seems to be the problem. Thank you.