#4422 BLOC First D: Record doesn't open in joyride
Zarro Boogs per Child
bugtracker at laptop.org
Wed Oct 24 10:32:19 EDT 2007
#4422: Record doesn't open in joyride
------------------------------+---------------------------------------------
Reporter: kimquirk | Owner: erikb
Type: defect | Status: new
Priority: blocker | Milestone: First Deployment, V1.0
Component: camera-activity | Version:
Resolution: | Keywords: tomeu
Verified: 0 |
------------------------------+---------------------------------------------
Changes (by marco):
* cc: tomeu (added)
* keywords: => tomeu
Comment:
Replying to [comment:5 erikb]:
> Let me rephrase: what has changed in sugar so that this line of code no
longer works?
Sugar launch activities so that current directory is inside the bundle.
i.e. inside /usr/share... Before I think it was /. If you try to write
into "tmp" you are actually writing inside /usr/share/.../tmp. Whatever
you do, you clearly don't want to use relative paths there.
> At start of the activity, I create "self.tempPath", and it is into this
location that I save copies of all media that comes into the activity
(photos from camera, photos from the mesh). When write_file is called, I
use these paths to save data to the datastore.
Are these files sticking around? Or they get written and immediately moved
into the datastore?
> Advise. Thanks!
Here is what sugar seem to be doing:
{{{
file_path = os.path.join(tempfile.gettempdir(), '%i' % time.time())
}}}
Tomeu, can you explain the rationale for using tmpfs there. AFAICT we are
just doing a move there, which should not trash the disk nor be slow.
--
Ticket URL: <https://dev.laptop.org/ticket/4422#comment:6>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list