Skip to content

Commit

Permalink
Specify Tracker version
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfactotum committed Mar 24, 2021
1 parent 85fcecc commit a38af18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const settings = new Gio.Settings({ schema_id: pkg.name + '.library' })
let trackerConnection
if (settings.get_boolean('use-tracker')) {
try {
imports.gi.versions.Tracker = '2.0'
const Tracker = imports.gi.Tracker
trackerConnection = Tracker.SparqlConnection.get(null)
} catch(e) {}
Expand Down

0 comments on commit a38af18

Please sign in to comment.