The issue here seems to be that unpinning an app pushes a zeitgeist event with application scheme and full path to the desktop file. If a desktop file is present in the standard XDG directories, the full path should be omitted and only desktop id (as per fdo menu spec) should be used - ie instead of "application:///usr/share/applications/foo/bar.desktop", "application://foo-bar.desktop" should be used. This will ensure that the event is correctly grouped with all the other events that we get from elsewhere about the application.
The issue here seems to be that unpinning an app pushes a zeitgeist event with application scheme and full path to the desktop file. If a desktop file is present in the standard XDG directories, the full path should be omitted and only desktop id (as per fdo menu spec) should be used - ie instead of "application: ///usr/ share/applicati ons/foo/ bar.desktop" , "application: //foo-bar. desktop" should be used. This will ensure that the event is correctly grouped with all the other events that we get from elsewhere about the application.