Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Ranger to open HTML files in Google Chrome instead of Firefox?

Tags:

linux

I'm using Ranger as my default file manager on Linux Mint. I can't figure out how to make Ranger open HTML files in Google Chrome.

like image 586
Nick Corona Avatar asked Oct 28 '25 20:10

Nick Corona


1 Answers

Copy the example rifle.conf

gunzip -c /usr/share/doc/ranger/config/rifle.conf.gz > .config/ranger/rifle.conf

And add ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@" above line 57

If you want to open a new window everytime, add --new-window to the command

Ranger config

like image 61
DasEarl Avatar answered Oct 30 '25 17:10

DasEarl