[help] when to call update-desktop-database in postinst

Stefano Zacchiroli zack@debian.org
Thu, 28 Apr 2005 00:17:28 +0200


--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all,
  I'm one of the maintainer of vim. Vim at the moment (well, not latest
version in unstable, but next one) ships a gvim.desktop file in
/usr/share/applications.

Having there that file enable to see gvim as a possible choice in
nautilus' "Open With" contextual menu when I right click on text/plain
files. Actually however, simply installing the .desktop file does not
make this "magic" happen, invoking /usr/bin/update-desktop-database is
actually required to cast the spell.

Now, I can happily live adding update-desktop-database to the postinst
script (or add dh_desktop to my debian/rules of course) of vim and the
appropriate dependency. What puzzles me however is that packages
shipping the other choices I see in my "Open With" menu (abiword,
emacs21, and gedit) do not invoke it in their postinst (while other
packages, e.g. gnumeric, do).

Are they wrong or am I missing something?

Many thanks for your help.
Cheers.

PS please Cc-me on replies, I'm not subscribed to this list.

--=20
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-

--J/dobhs11T7y2rNN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCcA931cqbBPLEI7wRArsMAJ4ibmo/7kKH5nQs9y9fbzdPdz4OVQCg0e2I
puVNG/qeWyZynxAfY7FyMJk=
=XBy6
-----END PGP SIGNATURE-----

--J/dobhs11T7y2rNN--