Re: installing GUI launchers and mimes
Le Sun, Jul 30, 2017 at 11:55:20AM +0200, Narcis Garcia a écrit :
> Do you mean that with only having at the package:
> triggers are automatically run?
yes they will:
$ grep usr/share/applications /var/lib/dpkg/triggers/File
$ grep usr/share/mime/packages /var/lib/dpkg/triggers/File
See /usr/share/doc/dpkg-dev/triggers.txt.gz for (a lot of) details.
> Why transmission-gtk/postinst calls update-menus and update-mime ? Is it
> some kind of compatibility measure?
The short answer is: "because transmission-gtk/postinst is generated by debhelper
$ cat /var/lib/dpkg/info/transmission-gtk.postinst
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
I am not sure why this is still needed while there is already a dpkg trigger
doing the work.
Anyway, as noted elsewhere, the Debian menu system is being phased out.
Have a nice day,
Tsurumi, Kanagawa, Japan