SettingsDb should check file timestamps instead of using inotify watch

Bug #1453041 reported by Paweł Stołowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scopes-api (Ubuntu)
Fix Released
Low
Paweł Stołowski

Bug Description

SettingsDb could be greatly simplified by using ctime/mtime of the settings file, rather than a watcher thread and inotify watch. The only place where we care if settings file has changes is settings() getter and this is where we can just check ctime/mtime to detect changes and re-parse.

Related branches

Thomas Strehl (strehl-t)
Changed in unity-scopes-api (Ubuntu):
importance: Undecided → High
importance: High → Medium
importance: Medium → Wishlist
Thomas Strehl (strehl-t)
Changed in unity-scopes-api (Ubuntu):
importance: Wishlist → Undecided
Changed in unity-scopes-api (Ubuntu):
importance: Undecided → Low
Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Pawel Stolowski (stolowski)
status: New → In Progress
Changed in unity-scopes-api (Ubuntu):
status: In Progress → Fix Committed
Changed in unity-scopes-api (Ubuntu):
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.