VectorLinux

The nuts and bolts => X-Rated => Topic started by: Miki Tebeka on August 27, 2007, 02:05:03 pm

Title: [SOLVED] Unable to change mime-type association
Post by: Miki Tebeka on August 27, 2007, 02:05:03 pm
Hello All,

Trying to make acroread the default PDF handler...

I've move xpdf.desktop from /usr/share/applications, (AdobeReader.desktop is there).
Ran update-mime-data /usr/share/mime

However when I run exo-open ~/eBooks/abs-guide.pdf, I still get xpdf.

Any ideas?

Thanks!
--
Miki <miki.tebeka@gmail.com>
http://pythonwise.blogspot.com
Title: Re: Unable to change mime-type association
Post by: wcs on August 28, 2007, 06:24:05 am
I'm guessing you could just right-click on the pdf file in Thunar, and choose to open the file with xpdf, checking the box to make it the default. Would this work?
Title: Re: Unable to change mime-type association
Post by: Miki Tebeka on August 29, 2007, 08:31:23 am
Yup, this did the trick.
Thanks!

However, I'm a shell kind of guy. Where does exo-open gets the mime type association?
Title: Re: Unable to change mime-type association
Post by: wcs on August 29, 2007, 08:55:54 am
Quote
Where does exo-open gets the mime type association?

I really don't know... If using exo-open, I change the preferred application in Thunar.
Maybe someone else will jump in at this point.
Title: Re: Unable to change mime-type association
Post by: stoichyu on August 29, 2007, 11:37:31 am
exo-open seems to use ~/.local/share/applications/default.list according to http://foo-projects.org/pipermail/xfce/2006-August/018439.html (http://foo-projects.org/pipermail/xfce/2006-August/018439.html)

Title: Re: Unable to change mime-type association
Post by: wcs on August 29, 2007, 06:37:58 pm
That makes sense!... I was wondering why I couldn't find it in /usr/share somewhere, but of course it would be inside an user's home directory.
Sure enough, it does list the Thunar preferences in order.
Title: Re: Unable to change mime-type association
Post by: Miki Tebeka on August 30, 2007, 06:47:20 am
exo-open seems to use ~/.local/share/applications/default.list according to http://foo-projects.org/pipermail/xfce/2006-August/018439.html (http://foo-projects.org/pipermail/xfce/2006-August/018439.html)


Excellent, just what I wanted.
Thanks!