Spotlight Features: comments preservation and forced reindexing

Bug #228484 reported by Andy Matuschak
2
Affects Status Importance Assigned to Milestone
Sparkle
Fix Released
Low
Unassigned

Bug Description

When installing an update, Sparkle should:

1. Copy the "comments" field from the old app to the new app.
2. (FIXED in [128]) Force Spotlight to index the new app (for people who use it as a launcher) by running mdimport with NSTask.

Related branches

Revision history for this message
Andy Matuschak (andymatuschak) wrote :

Unfortunately, there's no API to force Spotlight to reindex a particular item, but we can copy the comments field over to the new app.

description: updated
Changed in sparkle:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Scott Gruby (b-launchpad-net-gruby-com) wrote :

While not technically an API, you can run mdimport on something to get Spotlight to re-index it. I do this from an NSTask and it works fine.

Revision history for this message
Andy Matuschak (andymatuschak) wrote :

Okay, good idea.

description: updated
Revision history for this message
Catfish_Man (catfish-man) wrote :

This doesn't do the Finder comments bit, because I don't feel like mucking with apple events or FSCatalogInfo.

description: updated
Revision history for this message
HowardGMac (howardgriffith) wrote :

The fix has already been merged back in build 128. Just updating this bug with the correct Status.

Changed in sparkle:
status: Confirmed → Fix Committed
Revision history for this message
Andy Matuschak (andymatuschak) wrote :

Well, so, [128] doesn't do the first half of the ticket. I'm presently trying to decide whether or not I care.

I probably should.

Changed in sparkle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.