After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701059 - update-desktop-database trigger does not run
update-desktop-database trigger does not run
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2013-05-26 18:58 UTC by Adam Dingle
Modified: 2013-05-26 19:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (808 bytes, patch)
2013-05-26 19:03 UTC, Adam Dingle
accepted-commit_now Details | Review

Description Adam Dingle 2013-05-26 18:58:47 UTC
jhbuild contains a trigger 'desktop-database.trigger' which should run update-desktop-database after any application is installed.  But I just installed several applications with jhbuild and found that update-desktop-database did not run: my local install dir's mimeinfo.cache file was empty.
Comment 1 Adam Dingle 2013-05-26 19:03:04 UTC
Created attachment 245352 [details] [review]
fix

I believe the problem is simply that the path in desktop-database.trigger is wrong: it's looking for .desktop files to be installed in subdirectories of $(prefix)/share/applications, i.e. $(prefix)/share/applications/appname/appname.desktop.  But I'm not aware of any application which installs desktop files in such a location; as far as I'm aware desktop files always go in share/applications directly.

Here's a fix.
Comment 2 Colin Walters 2013-05-26 19:07:14 UTC
Review of attachment 245352 [details] [review]:

Oops, yes.  Looks right.
Comment 3 Adam Dingle 2013-05-26 19:09:10 UTC
Pushed the fix.