Terminal.xo patch: do not die if the cwd is gone

Martin Langhoff martin.langhoff at gmail.com
Tue Nov 3 11:04:47 EST 2009

Attached is a trivial patch that handles gracefully the situation
where cwd does not exist anymore or is no longer accessible to the
olpc user.

Without it,
 - mount a usb disk
 - open Terminal.xo, change directory to /media/my-usb-disk/
 - close Terminal.xo
 - unmount / remove usb disk
 - try to open Terminal.xo => fails to start


 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_cwd_restore.patch
Type: application/octet-stream
Size: 1076 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20091103/13921aba/attachment.obj>

More information about the Devel mailing list