Lens should not access Banshee's sqlite database

Bug #768248 reported by Bertrand Lorentz
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity Music Lens
Confirmed
Undecided
Unassigned

Bug Description

The Lens currently open banshee.db directly on startup.
This might be a problem for several reasons:
 - We might change the database structure
 - sqlite doesn't support multiple processes accessing the same database file, and Banshee might be started while the Lens accesses the database.

The alternative would be to use the various org.bansheeproject.CollectionIndexer.* interfaces described in this page:
http://banshee.fm/contribute/write-code/dbus-interfaces/

The GNOME Do plugin already uses it, so it might help to have a look at it:
http://bazaar.launchpad.net/~do-plugins/do-plugins/trunk/files/head:/Banshee/src/

This approach would also allow the Lens to show tracks right after they've been added in Banshee

Jorge Castro (jorge)
Changed in unity-music-lens:
status: New → Confirmed
Revision history for this message
Chow Loong Jin (hyperair) wrote :

Here's a crash log after Banshee got locked out of its own database. lsof showed only /usr/lib/unity-lens-music/unity-music-daemon accessing it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.