darwin: if default fs_monitor is not available, others are not used

Bug #1055791 reported by Mike McCracken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Confirmed
High
Mike McCracken

Bug Description

if the monitor class specified as 'default' in the fs_monitor setting - currently the root daemon - is not available (for instance, if it's not installed), then the other one, which is intended to be a fallback, is not used.

Currently the logic assumes that you only want to fallback to the default from a non-standard setting.
However, we want to use the root daemon as the default but provide the other one as an automatic fallback.
The current code doesn't do that.

see get_filemonitor_class() in platform/filesystem_notifications/monitor/__init__.py

Revision history for this message
Mike McCracken (mikemc) wrote :

per discussion with ralsina on irc - we should use a list of monitors instead of a dictionary, and just try them in order of preference.

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.