nautilus-home.desktop not matched properly if unity is started before bamfdaemon

Bug #762898 reported by Florian Boucault
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Expired
Undecided
Unassigned
unity-2d
Expired
High
Unassigned
unity (Ubuntu)
Expired
High
Unassigned
unity-2d (Ubuntu)
Expired
High
Unassigned

Bug Description

Steps to reproduce:

1. Log in Unity
2. Open a terminal and killall bamfdaemon
3. Make sure bamfdaemon is restarted
4. Click on the home folder icon in the launcher (icon corresponding to nautilus-home.desktop)

Expected Result

The icon clicked starts blinking and after a short delay a nautilus window showing the home folder appears.

Current Result

Another nautilus icon appears at the bottom of the launcher.

Revision history for this message
Florian Boucault (fboucault) wrote :

Relaunching Unity (unity --replace) fixes the issue. With that last observation it seems safe to say that the bug exists whenever Unity is started before bamfdaemon.

Revision history for this message
Jason Smith (jassmith) wrote :

this is because on restart your favorites are not re-registered with the daemon.

Revision history for this message
Florian Boucault (fboucault) wrote :

Can you be more explicit:
- what is the API call corresponding to registering favorites?
- where is the code in Unity registering the favorites?
- what does it do to register favorites?

Revision history for this message
Florian Boucault (fboucault) wrote :

Confirming as Olivier observed this behaviour as well quite some time ago.

Changed in unity:
status: New → Confirmed
Revision history for this message
Jason Smith (jassmith) wrote :

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.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Internally, bamf_matcher_get_application_for_desktop_file calls bamf_matcher_register_favorites with the full path to the desktop file for the favorite. This in turn calls the RegisterFavorites method of the matcher on dbus. Unfortunately this method is not exposed in the Qt binding at the moment.

Changed in unity-2d:
status: New → Confirmed
importance: Undecided → High
Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Florian Boucault (fboucault) wrote :

Unity 2D now also calls bamf_matcher_register_favorites.
This bug is still valid though.

Changed in unity-2d (Ubuntu):
status: New → Confirmed
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 762898
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in unity:
status: Confirmed → Incomplete
Changed in unity-2d:
status: Confirmed → Incomplete
Changed in unity-2d (Ubuntu):
status: Confirmed → Incomplete
Changed in unity (Ubuntu):
status: Confirmed → Incomplete
Changed in unity-2d (Ubuntu):
importance: Undecided → High
Changed in unity (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity-2d (Ubuntu) because there has been no activity for 60 days.]

Changed in unity-2d (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity (Ubuntu) because there has been no activity for 60 days.]

Changed in unity (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity-2d because there has been no activity for 60 days.]

Changed in unity-2d:
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Unity because there has been no activity for 60 days.]

Changed in unity:
status: Incomplete → Expired
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.