zegervdv / homebrew-zathura

Homebrew formulae to build Zathura on Mac OS X
547 stars 43 forks source link

zathura not reading the zathurarc file #39

Closed adir-ux closed 5 years ago

adir-ux commented 5 years ago

Hi,

first of all, thanks a lot for the formula! I really struggle to make meson build work (girara-gtk3 isn't found) and your formula saved me.

the thing is, zathura doesn't load the zathurarc file no matter where I place it (~/.config/zathura/zathurarc , ~/etc/zathurarc , ~/.local/share/zathura/zathurarc which is where it logs command history and such..) the developers have released a new version which logs the files zathura is trying to load when launching. could you update the formula so it would include the new version?

or on the other hand, if altering the formula is a pesky task, is there a way to install the new version using your existing formula? maybe with some modifications on my side?

zegervdv commented 5 years ago

Is XDG_CONFIG_HOME variable set? If not, can you try setting it to ~/.config.

Updating the version may be as easy as changing the version number in the formula, but if additional patching is required it can take a while to get it working.

If you want to give it a shot you can edit the formula locally (brew edit zathura) and update the version number to 4.4. You will also need to update the hash. You can do so by downloading the source tarball (https://github.com/pwmt/zathura/archive/0.4.4.tar.gz) and run shasum -a 256 <path/to/tarball>. You will probably need to update girara too.

I’ll do the updates over the weekend, but if the local changes would work for you, feel free to send a pull request.

zegervdv commented 5 years ago

Another option is dtrace, although I haven’t used it myself that much yet, but it should show you which files it is loading

adir-ux commented 5 years ago

I edited the formula, had to figure out which hash it wants to see but it worked finally. updated both zathura and girara, and zathura outputted log which specified what its trying to load. apparently my zathurarc had .txt suffix to it. removing it solved this issue.

thanks a lot!

zegervdv commented 5 years ago

Glad to hear you could make it work! I’ll update the versions over the weekend.