Ivan Tomica

Zathura as default PDF client in Ubuntu

Since I’m using AwesomeWM as my WM of choice and I try to keep my app list to minimal, I don’t really have graphical PDF client such as Evince. Instead, for my PDF reading requirements Zathura is a perfect fit.

This all works fine when I’m specifying zathura FILENAME either from AwesomeWM Run menu or from command line, but when clicking on PDF file in some XDG respecting app such as Telegram desktop, that meant that PDF would open in GIMP 🤦

In order to resolve that I had to change XDG mime which was achieved with this super-duper one-liner:

for type in pdf x-pdf fdf xdp xfdf pdx; do xdg-mime default zathura.desktop application/$type; done
About 
Sysadmin on the everlasting journey of learning. Always in search for an opportunity to prove myself and to learn something new. My addiction is learning and my main goal is to excel in every aspect of Linux/Unix system administration.

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *