Subject: Re: pkg/31533
To: None <reed@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-bugs
Date: 10/11/2005 21:20:02
The following reply was made to PR pkg/31533; it has been noted by GNATS.
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/31533
Date: Tue, 11 Oct 2005 14:19:44 -0700 (PDT)
On Tue, 11 Oct 2005, Pavel Cahyna wrote:
> 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.
You are welcome. And I learned more about this.
It does make sense, but I don't know this tool well.
Please ask on tech-pkg and to the maintainer jmmv.
I see that pkgsrc/sysutils/desktop-file-utils has a desktopdb.mk file
which says:
# This Makefile fragment is intended to be included by packages that install
# desktop entries. It takes care of registering them in the global database.
Have a look at that.
I see some packages do include it, like gpdf, ggv, totem, epiphany, etc.
But I am not sure what handles the running of update-desktop-database.
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/