Ticket #8396 (new defect)

Opened 6 years ago

Last modified 6 years ago

copy-to-journal does not work from console

Reported by: bert Owned by: marco
Priority: high Milestone: 8.2.0 (was Update.2)
Component: sugar Version: not specified
Keywords: relnote r+ Cc: Phil, mstone
Action Needed: test in release Verified: no
Deployments affected: Blocked By: #7811
Blocking:

Description

Apparently it does not connect to the user's DBus session.

Attachments

copy-journal.patch (0.8 kB) - added by bert 6 years ago.
0001-Make-copy-from-journal-and-copy-to-journal-work-from.patch (1.2 kB) - added by bert 6 years ago.

Change History

Changed 6 years ago by mstone

  • next_action changed from never set to diagnose
  • cc Phil added
  • blockedby 7811 added
  • priority changed from normal to high
  • milestone changed from Not Triaged to 8.2.0 (was Update.2)
  • keywords relnote added

Bert, Phil -- I'd be interested in patches which fix this but I am not presently willing to block the release on it. Thanks for testing it, though!

Changed 6 years ago by bert

  • cc mstone added

Simple fix - add this:

if os.path.exists("/tmp/olpc-session-bus"):
    os.environ["DBUS_SESSION_BUS_ADDRESS"] = "unix:path=/tmp/olpc-session-bus"

before importing the datastore. Attaching patch.

Changed 6 years ago by bert

Changed 6 years ago by marco

  • keywords r+ added
  • next_action changed from diagnose to review

We should really figure out how to make dbus autolaunch work on the XO... but it's OK as a temporary workaround. Thanks.

Please check in on master and sucrose-0.82

Changed 6 years ago by marco

  • next_action changed from review to package

Pushed.

Changed 6 years ago by marco

  • next_action changed from package to test in build

Changed 6 years ago by marco

  • next_action changed from test in build to approve for release

Changed 6 years ago by marco

sugar-datastore-0.82.1-1.olpc3

Approved.

Changed 6 years ago by marco

  • next_action changed from approve for release to add to release

Changed 6 years ago by marco

|Testcase|

Go to a text console. Add add a file to the journal using the copy-to-journal script. Check that you get no errors on the command line. Go back to sugar and check that the file has been added.

Changed 6 years ago by cscott

  • next_action changed from add to release to test in release

sugar-datastore-0.82.1-1.olpc3 added to stable repository:

http://mock.laptop.org/gitweb/gitweb.cgi?p=repos;a=commitdiff;h=62bb06d5174062dc1641f9d8e384acca21f22f68

Should be in stable build 760 and later. Please test.

Note: See TracTickets for help on using tickets.