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

Re: installing GUI launchers and mimes

I'm using this express-made address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.
El 31/07/17 a les 03:23, Charles Plessy ha escrit:
> Le Sun, Jul 30, 2017 at 11:55:20AM +0200, Narcis Garcia a écrit :
>> Do you mean that with only having at the package:
>> ./usr/share/applications/xxx.desktop
>> ./usr/share/mime/packages/xxx.xml
>> triggers are automatically run?
> Hello Narcis,
> yes they will:
> 	$ grep usr/share/applications /var/lib/dpkg/triggers/File 
> 	/usr/share/applications mime-support/noawait
> 	/usr/share/applications desktop-file-utils
> 	/usr/share/applications gnome-menus/noawait
> 	$ grep usr/share/mime/packages /var/lib/dpkg/triggers/File 
> 	/usr/share/mime/packages shared-mime-info
> See /usr/share/doc/dpkg-dev/triggers.txt.gz for (a lot of) details.

When no trigger seem to be in the system (I'm thinkng on other or older
distros), I'll try to use these two commands in postinst:
update-mime-database /usr/share/mime

I suppose these will cover most cases for this and other programs:

Reply to: