Favorite registration is done automatically when a user calls bamf_matcher_get_application_for_desktop_file, the passed desktop file gets registered as a favorite. This causes the daemon to give that .desktop file preferential treatment when a match is ambiguous, as is the case with nautilus.
Favorite registration is done automatically when a user calls bamf_matcher_ get_application _for_desktop_ file, the passed desktop file gets registered as a favorite. This causes the daemon to give that .desktop file preferential treatment when a match is ambiguous, as is the case with nautilus.