我想构建RPM来安装.desktop文件,其中包含MimeType,因为.desktop文件包含MimeType它需要更新桌面数据库命令后放置.desktop文件在/ usr/share/applications中,怎么做?构建RPM来安装.desktop文件,其中包含MimeType
0
A
回答
1
我已经%,此前加入以下部分实现了这一安装:
%post
update-desktop-database
0
安装.desktop文件,这里涵盖: https://fedoraproject.org/wiki/Packaging:Guidelines#Desktop_files
更新MIME数据库这里介绍: https://fedoraproject.org/wiki/Packaging:Scriptlets#mimeinfo