[tracker/libtracker-bus: 41/52] libtracker-bus: Allow backend to switch between fd passing and dbus-glib
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-bus: 41/52] libtracker-bus: Allow backend to switch between fd passing and dbus-glib
- Date: Fri, 13 Aug 2010 08:25:42 +0000 (UTC)
commit bc3e96c5426e3b51bce48f7fcbccbef389bf746b
Author: Martyn Russell <martyn lanedo com>
Date: Fri Jul 23 10:04:15 2010 +0100
libtracker-bus: Allow backend to switch between fd passing and dbus-glib
Variable: TRACKER_BUS_BACKEND="dbus-glib" forces dbus-glib if steroids available
src/libtracker-bus/tracker-bus.vala | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index f686806..e0e781b 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -58,11 +58,13 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
try {
if (strcmp (Config.HAVE_DBUS_FD_PASSING_IN_VALA, "1") == 0) {
- use_steroids = true;
- } else {
- use_steroids = false;
- }
+ string env_backend = Environment.get_variable ("TRACKER_BUS_BACKEND");
+ if (env_backend == null || env_backend.ascii_casecmp ("steroids") == 0) {
+ use_steroids = true;
+ }
+ }
+
debug ("Using steroids = %s", use_steroids ? "yes" : "no");
connection = DBus.Bus.get (DBus.BusType.SESSION);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]