zegervdv / homebrew-zathura

Homebrew formulae to build Zathura on Mac OS X
538 stars 41 forks source link

Method to run zathura as default pdf viewer #78

Open curiome opened 3 years ago

curiome commented 3 years ago

This question is not specific to zathura, but what is recommended method to make zathura as the default pdf viewer? I managed to do it with a third-party app platypus to run a shell script, but it feels a bit hacky. The shell script is:

/opt/homebrew/bin/zathura "$1"&

Whit this script, zathura window is not focused when opened. I guess this is related to the issue #62 . Note if I remove &, I can only run one pdf file at a time.

zegervdv commented 3 years ago

I think the cleanest solution would be to install zathura as an app so it shows up in the Finder menu etc.

But I'm not sure how to achieve that right now.

naba-nyan commented 2 years ago

One method to make zathura as the default pdf viewer is to use the apple script. You can find a script for zathura here.

Ghasak commented 2 years ago

If you install Ranger, it will automatically open your pdf with Zathura, so amazing feature I have discovered just lately. and yes it is working on MAC. Ranger Webiste