Skip to content
Advertisement

Building RPM to install .desktop file that contains MimeType

I’m trying to build RPM to install .desktop file that contains MimeType, because .desktop file contains MimeType it needs update-desktop-database command to take effect after placing .desktop file in /usr/share/applications, how to do so?

Advertisement

Answer

I have achieved this by adding the following part after %install:

%post
update-desktop-database
Advertisement