< ^ txt
Wed Feb 18 07:49:03 EST 2015
Slept well.
Goals:
Work:
- Assess pipe burst damage at KW
Done. It's dry enough to replace equipment.
- Pick a switch for vm host b-side
Maybe the HP JE005A#ABA.
Home:
- Notes on C, OpenBSD, or systemd --- whatever takes my fancy.
Done. Made some notes about the OpenBSD boot loader.
- Play with Krita a bit
Done.
Questions:
- God damn krita has decide it's the default app for opening PDF's. Do not want.
How to I set the default app for MIME types?
https://wiki.debian.org/MIME
To be able to specify default applications, a mimeapps.list file (previously named defaults.list up to debian 5) must be created. It can be system-wide (in /usr/share/applications or a subdirectory) or user-specific (in $HOME/.local/share/applications). A heuristic is used by glib (FIXME: what about KDE?) to use the appropriate mimeapps.list file according to the user environment (Gnome evince vs. KDE Okular for PDF files for instance). The mimeapps.list file follows the same syntax as mimeinfo.cache, i.e:
[Default Applications]
application/pdf=evince.desktop
image/png=eog.desktop
--- 546 --- falstaff ~ $ cat /usr/share/applications/mimeinfo.cache | grep "application/pdf"
application/pdf=kde4-krita_pdf.desktop;xpdf.desktop;vprerex.desktop;evince-previewer.desktop;gimp.desktop;evince.desktop;
--- 548 --- falstaff ~ $ cat <<'EOF' >> ~/.local/share/applications/mimeapps.list
> [Default Applications]
> application/pdf=xpdf.desktop;evince.desktop;
> EOF
Fixed. I added the mimeapps.list file to my dotfiles repo.
< ^ txt