[tracker] thunderbird: Don't restrict plugin to JUST 0.12
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] thunderbird: Don't restrict plugin to JUST 0.12
- Date: Wed, 22 Feb 2012 18:35:40 +0000 (UTC)
commit 54f0defade875110047341e21bf122f5d05e35a0
Author: Martyn Russell <martyn lanedo com>
Date: Wed Feb 22 17:56:08 2012 +0000
thunderbird: Don't restrict plugin to JUST 0.12
src/plugins/thunderbird/chrome/content/bindings.js | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/thunderbird/chrome/content/bindings.js b/src/plugins/thunderbird/chrome/content/bindings.js
index 9b1bcf8..2eed0ee 100644
--- a/src/plugins/thunderbird/chrome/content/bindings.js
+++ b/src/plugins/thunderbird/chrome/content/bindings.js
@@ -2,7 +2,8 @@ if (!org.bustany.TrackerBird.TrackerSparql || !org.bustany.TrackerBird.TrackerSp
org.bustany.TrackerBird.TrackerSparql = {
__initialized: true,
- _trackerSparqlPath: "libtracker-sparql-0.12.so.0",
+ _trackerSparqlPath1: "libtracker-sparql-0.12.so.0",
+ _trackerSparqlPath2: "libtracker-sparql-0.14.so.0",
_lib: null,
init: function () {
@@ -16,10 +17,16 @@ org.bustany.TrackerBird.TrackerSparql = {
Components.utils.import ("resource://gre/modules/ctypes.jsm");
try {
- tracker._lib = ctypes.open (tracker._trackerSparqlPath);
+ tracker._lib = ctypes.open (tracker._trackerSparqlPath1);
} catch (e) {
- dump ("Could not load libtracker-sparql 0.12: " + e + "\n");
- return false;
+ dump ("Could not load " + tracker._trackerSparqlPath1 + ": " + e + "\n");
+
+ try {
+ tracker._lib = ctypes.open (tracker._trackerSparqlPath2);
+ } catch (e) {
+ dump ("Could not load " + tracker._trackerSparqlPath2 + ": " + e + "\n");
+ return false;
+ }
}
// GLib types
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]