Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/copy-from-journal
diff options
context:
space:
mode:
authorBert Freudenberg <bert@freudenbergs.de>2008-09-11 11:53:17 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-09-11 12:07:35 (GMT)
commit9e6b00964c84eb2ed7029e3fa39df0af977f2fd4 (patch)
tree5036ef1eaa3f3fe14da4fe15dbba21b5ccb425eb /bin/copy-from-journal
parent721dc4e82515b00856cd591bc5e84bca4979ca76 (diff)
Make copy-from-journal and copy-to-journal work from Console This will connect to /tmp/olpc-session-bus if available (#8396)
Diffstat (limited to 'bin/copy-from-journal')
-rwxr-xr-xbin/copy-from-journal3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/copy-from-journal b/bin/copy-from-journal
index 61b91c9..9be49d4 100755
--- a/bin/copy-from-journal
+++ b/bin/copy-from-journal
@@ -9,6 +9,9 @@ import os
import shutil
import optparse
+if os.path.exists("/tmp/olpc-session-bus"):
+ os.environ["DBUS_SESSION_BUS_ADDRESS"] = "unix:path=/tmp/olpc-session-bus"
+
from sugar.datastore import datastore
import sugar.mime