Thomas Adam <tho...@xteddy.org> writes: > On Sun, Feb 14, 2010 at 12:09:25AM +0100, Nathan Huesken wrote: >> Hi, >> >> When I use chromium under Xfce4, it opens pdf files using evince. When I >> use chromium under fvwm, it opens pdfs using firefox (which opens pdfs >> using evince, but is started and takes long to start). >> >> I am not sure, if this is really a fvwm thing, but it is my only guess. >> Maybe someone in the list knows ... > > Read up on how mailcap entries work. Nothing to do with FVWM.
Desktop environments are messing up what used to be a well defined boundary between the window manager and X. On my Fedora system, /etc/mailcap contains: audio/*; /usr/bin/xdg-open %s image/*; /usr/bin/xdg-open %s application/msword; /usr/bin/xdg-open %s application/pdf; /usr/bin/xdg-open %s application/postscript ; /usr/bin/xdg-open %s text/html; /usr/bin/xdg-open %s ; copiousoutput So, from this system's point of view, mailcap is just a thin layer on top of xdg-open. xdg-open on my system only knows to use firefox. I see that xdg-open uses a file named "defaults.list". I have 3 of those: /usr/local/share/applications/defaults.list /usr/share/applications/defaults.list /usr/share/kde-settings/kde-profile/default/share/applications/defaults.list I think the trick is to convince xdg-open to use one or more of those files...