Re: [opensuse] File associations



Jason Craig wrote:
Where does Firefox get it's file associations from, anyone know? I
click on a PDF link, and Firefox asks if I want to save or open it, and
the only program that it shows in the "open" dropdown is KGhostView
(labeled default), which I think is far inferior to KPDF, which usually
opens my PDFs. I found the file associations menu in Konqueror,
browsing my files, so that's nice, but are there some overriding
settings somewhere?

Firefox gets its file associations through mime-types/mailcap _and_
gnome-vfs (in that order). gnome-vfs knows about KDE applications as
well if they are providing sufficient information for the mime database
and or through desktop files (what is recommended from freedesktop.org
afaik).
So what you actually get depends on different things:
- is the webserver giving you a mime-type?
- what extension has the file you get? (pdf are not always sent as pdf
but the mime-type sent is actually correct)
- which applications you have installed to handle that mime-type

One thing to add is that gnome-vfs (as the name says) will prefer to
default to gnome and gtk applications but you might be able to change
the default by changing /etc/gnome_defaults.conf.

You can get a log from Firefox why it's finding KGhostView by doing

export NSPR_LOG_MODULES=HelperAppService:5
export NSPR_LOG_FILE=/tmp/helperapp.log
firefox
(clicking that link to your pdf)

HTH,
Wolfgang

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Fuzzy looking script in publisher e-mail templetes
    ... the entire collection of Firefox instances closed when I managed to catch the close icon on one. ... Unlike most PDF conversion tools, in Pub 2007 you File> Publish as PDF or XPS... ... That opens a dialog where you can choose either format. ...
    (microsoft.public.publisher)
  • Re: [opensuse] Opening same application on different desktops
    ... The file opens, but in the already opened OOo-Writer on Desktop 2. ... I can also reproduce this behaviour with Adobe 8. ... then went to Desktop 1 and clicked on another *.PDF file; ... Firefox, I noticed similar behaviour when I click on a link in Desktop ...
    (SuSE)
  • Re: Fedora makes bad pdf files?
    ... create pdf output generate files that acroread cannot open. ... not acrobat. ... Firefox, which then opens the Acrobat for Linux plugin, and when the ...
    (Fedora)
  • Re: PowerPoint Viewer and PDF LInks
    ... Upon clicking the first .pdf link after starting the CD ppt ... background and click another pdf link, it opens full-screen to the ...
    (microsoft.public.powerpoint)
  • Re: [opensuse] File associations
    ... click on a PDF link, and Firefox asks if I want to save or open it, and ... opens my PDFs. ... I found the file associations menu in Konqueror, ... two great resources for researching Firefox questions: ...
    (SuSE)