Ticket #573 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

copy-to-journal dbus error

Reported by: skierpage Owned by: wadeb
Priority: Low Milestone: 0.88
Component: sugar-datastore Version: Git as of bugdate
Severity: Unspecified Keywords: r+
Cc: Distribution/OS: Unspecified
Bug Status: Resolved

Description

I'm using Rawhide-XO 20090316 which contains "Sugar 0.84.0" (e.g. sugar-datastore-0.84.0-1.fc11.i586).

I had a .xol file on a USB flash drive that the Journal had not mounted. To copy it into the Journal, I tried

copy-to-journal -m application/vnd.olpc-content /mnt/temp_usb/Little-Brother-1.xol

but that resulted in

Error: org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to autolaunch D-Bus session: No protocol specified
Autolaunch error: X11 initialization failed.

WARNING: root:DSObject was deleted without cleaning up first.  Call DSObject.destroy() before disposing it.

Attachments

Change History

Changed 4 years ago by skierpage

D'oh, this happened when I ran it as root, I retried as the Sugar user "liveuser" and it completed (but then Sugar crashed and I returned to the login screen). So maybe the bug is just that error is confusing.

Changed 4 years ago by homunq

  • status_field changed from Unconfimed to Needinfo

should copy-to-journal ensure it's not running as root?

Changed 4 years ago by tomeu

  • keywords sugar-love added

Yeah, I would say that the message error could be improved to say that the command should be run in the same environment as Sugar is running, which would be in a terminal activity without having sudoed.

Changed 4 years ago by wadeb

  • status changed from new to accepted
  • priority changed from Unspecified by Maintainer to Low
  • owner changed from tomeu to wadeb
  • version changed from 0.84.x to Git as of bugdate
  • milestone changed from 0.84 to 0.88
  • keywords r? added; sugar-love removed
  • distribution changed from Fedora to Unspecified
  • type changed from defect to enhancement
  • status_field changed from Needinfo to Resolved

Changed 3 years ago by tomeu

I like the idea but I would try to avoid moving all that code into a single try..except block.

Changed 3 years ago by alsroot

  • keywords r+ added; r? removed
  • status changed from accepted to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.