Results 1 to 9 of 9
hi all,
I'm unhappy with the choice of application made by Opera's M2 email client when opening PDF attachments to my mail -- I was told Opera falls back on ...
- 07-28-2009 #1Linux Newbie
- Join Date
- Sep 2007
- Posts
- 159
MIME-type handling in GNOME
hi all,
I'm unhappy with the choice of application made by Opera's M2 email client when opening PDF attachments to my mail -- I was told Opera falls back on the systems default application based on its MIME type.
This is on a Debian Etch system running GNOME 2.14.3, and I don't quite understand where MIME types and default apps are specified. I know I can right-click on a specific document, bring up the properties dialog and pick a default app on the "Open With" tab. After this, GNOME will use a different default, but Opera doesn't seem to know about it.
Are there other places to control GNOME's default apps?
cheers, kai
- 07-28-2009 #2
Opera is not a Gnome application. You may have better luck setting it in Opera preferences.
- 07-28-2009 #3Linux Newbie
- Join Date
- Sep 2007
- Posts
- 159
thanks, Segfault!
I actually started out in an Opera forum where I found out that, apparently, Opera checks the system settings for MIME types. Anyway, it doesn't seem to be the case for GNOME.
Is there a different way of accessing the MIME type handling in GNOME than the way I described?
cheers, kai
- 07-28-2009 #4
OK, let's make it clear. You went to
Tools > Preferences > Advanced > Downloads
there you set your preferred application for pdf and it didn't work?
- 07-29-2009 #5Linux Newbie
- Join Date
- Sep 2007
- Posts
- 159
Right. That's where I went - and my choice there is "Open with other application" which I specified to be "/usr/bin/acroread". Also, there is only one entry for pdf in the list of MIME types which is "application/pdf".
And it actually works fine for Opera "the browser" - if I click links to PDFs they are opened using acrobat reader. This setting matters, too: when I changed it from acroread to evince, that's just what happened. But it doesn't work for email attachment, which get opened using ghostview by Opera M2.
kai
- 07-29-2009 #6
Hmhh ...
There is a bunch of configuration files in ~/.opera - this setting is stored somewhere there. I don't use M2 myself, sorry, can't help further.
- 07-29-2009 #7Linux Newbie
- Join Date
- Sep 2007
- Posts
- 159
ok, thanks segfault, for following up to this point.
I just "grep"ped for '\<gv\>' in .opera to see if this was specified verbatim in one of the config files and got nothing in return.
Maybe someone else has ideas?
cheers, kai
- 07-30-2009 #8Linux Newbie
- Join Date
- Sep 2004
- Location
- UK
- Posts
- 158
Try
/etc/mailcapmight help?
/etc/mime.typesIn a world without walls and fences, who needs Windows and Gates?
- 07-30-2009 #9Linux Newbie
- Join Date
- Sep 2007
- Posts
- 159
great, thanks!
/etc/mailcap had several entries for application/pdf, the last of which specified ghostview to open .pdf
it also contained the useful line of advise:addingCode:# Users can add their own rules if they wish by creating a ".mailcap" # file in their home directory. Entries included there will take # precedence over those listed here.
which I copied from /etc/mailcap to ~/.mailcap at its end did the trick.Code:application/pdf; /usr/bin/acroread '%s'; test=test -n "$DISPLAY"; description=Portable Document Format; nametemplate=%s.pdf
thanks very much, this was most helpful!
now I'm just wondering when/how lines are added to /etc/mailcap ...
cheers, kai


Reply With Quote

