Subject: Re: pkg/31533
To: None <reed@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: pkgsrc-bugs
Date: 10/11/2005 21:11:02
The following reply was made to PR pkg/31533; it has been noted by GNATS.

From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/31533
Date: Tue, 11 Oct 2005 23:10:44 +0200

 On Tue, Oct 11, 2005 at 01:50:49PM -0700, Jeremy C. Reed wrote:
 > On Tue, 11 Oct 2005, Pavel Cahyna wrote:
 > 
 > >Thanks, but this still looks more like a workaround than a fix.
 > 
 > According to that FAQ I sent you, galeon only supports it via that 
 > nautilus.
 > 
 > >Does gnome really require it?
 > 
 > I don't know.
 > 
 > >I don't remeber playing with the "Open With" tab on
 > >Gentoo where I use galeon without problems (but I can be wrong, I use
 > >nautilus there).
 > 
 > I assume that your Gentoo system included some configuration to say that 
 > PDF was handled.
 > 
 > >Could't it be fixed by distributing some .desktop file
 > >with xpdf?
 
 I will answer all those questions myself.
 
 I found a xpdf.desktop file in Gentoo buried under KDE:
 /usr/kde/3.4/share/apps/kappfinder/apps/Office/xpdf.desktop
 
 copied it to /usr/pkg/share/applications
 
 ran update-desktop-database  /usr/pkg/share/applications
 
 (the explicit directory is needed because of the bug mentioned before)
 
 and started galeon.
 
 And it works now! It offers me the choice of saving or opening with xpdf.
 
 So, IMHO the fix would be to include a suitable .desktop file with xpdf
 and run update-desktop-database in its post-install script (if pkgsrc has
 post-install scripts.) update-desktop-database should be also listed as
 RECOMMENDED for every package that provides .desktop files.
 
 Does this make sense?
 
 Thanks again for your helpful hints about update-desktop-database.
 
 Pavel Cahyna