FS#48755 - [pcmanfm-qt] Package should depend on desktop-file-utils
Attached to Project:
Community Packages
Opened by Peter Mattern (krabat) - Wednesday, 30 March 2016, 15:32 GMT
Last edited by Balló György (City-busz) - Wednesday, 15 February 2017, 23:30 GMT
Opened by Peter Mattern (krabat) - Wednesday, 30 March 2016, 15:32 GMT
Last edited by Balló György (City-busz) - Wednesday, 15 February 2017, 23:30 GMT
|
Details
Package pcmanfm-qt comes with an install script running
binary update-desktop-database and should hence depend on
package desktop-file-utils.
|
This task depends upon
Closed by Balló György (City-busz)
Wednesday, 15 February 2017, 23:30 GMT
Reason for closing: Fixed
Additional comments about closing: in trunk
Wednesday, 15 February 2017, 23:30 GMT
Reason for closing: Fixed
Additional comments about closing: in trunk
Definite information which packages will provide the hooks and which other packages will eventually depend on those packages doesn't seem to be available yet.
But looking at dkms which is implementing hooks already I'd expect a hook like https://github.com/andrewgregory/pachooks/blob/master/hooks/update-desktop-database.hook to be provided by package desktop-file-utils. But if so packages which want to run update-desktop-database will still have to depend on desktop-file-utils as this package will hardly ever be installed by default on every system.
Now, being a file manager, this package may very well use that database. I don't know. Do you?
We've got
> $ grep -i mime /usr/share/applications/pcmanfm-qt.desktop
> MimeType=inode/directory;
which yields something like
> $ grep pcman /usr/share/applications/mimeinfo.cache
> inode/directory=doublecmd.desktop;qtfm.desktop;audacious.desktop;pcmanfm-qt.desktop;
after running update-desktop-database.
Don't know what's your idea of "use the database" then.
But the purpose of update-desktop-database is transforming values of key "MimeType" in desktop entry files into entries in mimecache.info, see man (1) update-desktop-database. So my previous comment does depict why it makes sense if pcmanfm-qt belongs to the "packages which want to run update-desktop-database".
Btw. you do realize that e. g. Dolphin, Nautilus and PCManFM all set MimeType to inode/directory in their desktop entry files and that hence all corresponding packages "want to run update-desktop-database" as well?