我正在尝试构建RPM以安装包含MimeType的.desktop文件,因为.desktop文件包含MimeType,因此需要将.desktop文件放置在/ usr / share / applications中后,update-desktop-database命令才能生效。 ?
I have achieved this by adding the following part after %install:
%post
update-desktop-database
Installing .desktop file is covered here: https://fedoraproject.org/wiki/Packaging:Guidelines#Desktop_files
Updating mime database is covered here: https://fedoraproject.org/wiki/Packaging:Scriptlets#mimeinfo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.