How to prevent GIMP for opening PDF files

Following this solution found on Archlinux’s forums I was able to prevent GIMP for opening PDF files:

sed -i -r ‘s|=(gimp\.desktop);([^;]+?)|=\2;\1|’ /usr/share/applications/mimeinfo.cache

For some reason GIMP was the preferred application to open this type of files, but is not very nice.

Advertisements

About this entry