Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > MIME-type handling in GNOME

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-28-2009   #1 (permalink)
Linux Newbie
 
Join Date: Sep 2007
Posts: 129
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
kai12 is offline  


Reply With Quote
Old 07-28-2009   #2 (permalink)
Linux User
 
Join Date: Jun 2008
Location: Acadiana
Posts: 334
Opera is not a Gnome application. You may have better luck setting it in Opera preferences.
Segfault is offline   Reply With Quote
Old 07-28-2009   #3 (permalink)
Linux Newbie
 
Join Date: Sep 2007
Posts: 129
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
kai12 is offline   Reply With Quote
Old 07-28-2009   #4 (permalink)
Linux User
 
Join Date: Jun 2008
Location: Acadiana
Posts: 334
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?
Segfault is offline   Reply With Quote
Old 07-29-2009   #5 (permalink)
Linux Newbie
 
Join Date: Sep 2007
Posts: 129
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
kai12 is offline   Reply With Quote
Old 07-29-2009   #6 (permalink)
Linux User
 
Join Date: Jun 2008
Location: Acadiana
Posts: 334
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.
Segfault is offline   Reply With Quote
Old 07-29-2009   #7 (permalink)
Linux Newbie
 
Join Date: Sep 2007
Posts: 129
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
kai12 is offline   Reply With Quote
Old 07-30-2009   #8 (permalink)
Linux Newbie
 
Join Date: Sep 2004
Location: UK
Posts: 114
Try
/etc/mailcap
/etc/mime.types
might help?
__________________
In a world without walls and fences, who needs Windows and Gates?
blinky is offline   Reply With Quote
Old 07-30-2009   #9 (permalink)
Linux Newbie
 
Join Date: Sep 2007
Posts: 129
Quote:
Originally Posted by blinky View Post
Try
/etc/mailcap
/etc/mime.types
might help?
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:
Code:
#  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.
adding
Code:
application/pdf; /usr/bin/acroread '%s'; test=test -n "$DISPLAY"; description=Portable Document Format; nametemplate=%s.pdf
which I copied from /etc/mailcap to ~/.mailcap at its end did the trick.

thanks very much, this was most helpful!

now I'm just wondering when/how lines are added to /etc/mailcap ...

cheers, kai
kai12 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:09 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2