[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

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

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.

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

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. -!-

Attachment: signature.asc
Description: Digital signature

Reply to: