diff options
author | Bert 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) |
commit | 9e6b00964c84eb2ed7029e3fa39df0af977f2fd4 (patch) | |
tree | 5036ef1eaa3f3fe14da4fe15dbba21b5ccb425eb | |
parent | 721dc4e82515b00856cd591bc5e84bca4979ca76 (diff) |
Make copy-from-journal and copy-to-journal work from Console This will connect to /tmp/olpc-session-bus if available (#8396)
-rwxr-xr-x | bin/copy-from-journal | 3 | ||||
-rwxr-xr-x | bin/copy-to-journal | 3 |
2 files changed, 6 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 diff --git a/bin/copy-to-journal b/bin/copy-to-journal index b45677a..ce72f2b 100755 --- a/bin/copy-to-journal +++ b/bin/copy-to-journal @@ -11,6 +11,9 @@ import sys import os 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 def build_option_parser(): |