After opening a feed in newsboat, we have the option to open in browser using the o key.
However, when I press the o key, I get Browser returned error code 127.
Looking online, I'm told to add browser firefox to the config file of newsboat. Somewhere else I'm told to add browser "w3m %u". I've tried both and neither worked and I still get the error above.
What can I do to make o work in newsboat?
My operating system is Ubuntu 20.04.
$ which newsboat
/snap/bin/newsboat
$ echo $BROWSER returns nothing
$ newsboat -v
newsboat r2.20.1-3-gb8c2a-dirty - https://newsboat.org/
Copyright (C) 2006-2015 Andreas Krennmair
Copyright (C) 2015-2020 Alexander Batischev
Copyright (C) 2006-2017 Newsbeuter contributors
Copyright (C) 2017-2020 Newsboat contributors
Newsboat is free software licensed under the MIT License.
(Type `/snap/newsboat/2764/usr/local/bin/newsboat -vv' to see the full text.)
It bundles:
- JSON for Modern C++ library, licensed under the MIT License: https://github.com/nlohmann/json
- optional-lite library, licensed under the Boost Software License: https://github.com/martinmoene/optional-lite
- expected-lite library, licensed under the Boost Software License: https://github.com/martinmoene/expected-lite
newsboat r2.20.1-3-gb8c2a-dirty
System: Linux 5.4.0-40-generic (x86_64)
Compiler: g++ 7.5.0
ncurses: ncurses 6.1.20180127 (compiled with 6.1)
libcurl: libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3 (compiled with 7.58.0)
SQLite: 3.22.0 (compiled with 3.22.0) libxml2: compiled with 2.9.4
$ cat ~/.newsboat/config
cat: /home/user/.newsboat/config: No such file or directory
The last output is because I make my changes in the directory ~/snap/newsboat/2764/.newsboat/config, which works for me when I put in other config lines like auto refresh and refresh timer. So maybe that's not an issue?