Re: Some example code for a new crash handler
- From: Charles Iliya Krempeaux <tnt linux ca>
- To: Havoc Pennington <hp redhat com>
- Cc: Hongl Lai <hongli telekabel nl>, gnome-list gnome org
- Subject: Re: Some example code for a new crash handler
- Date: 11 Jan 2002 15:26:17 -0800
Hello,
On Fri, 2002-01-11 at 14:18, Havoc Pennington wrote:
>
> Hongl Lai <hongli telekabel nl> writes:
> > It is a workaround, to give the user time to save the document.
>
> Sure, but it's a workaround that works unreliably, and may cause
> dangerous side effects. You're running a corrupted program; not a good
> idea.
Well, how about, instead of saving things over the original files,
you save it as another file name.
For example, if you were using gedit, and it support this thing.
And you were editing the file:
something.txt
then, on a crash, the file would be saved to:
something.txt.crash
Or something like that.
That way, you don't screw up your original data (if the program
is too corrupt), but the user at least has to chance to save
their work. The user could later inspect the file to see if
it is OK.
See ya
Charles Iliya Krempeaux
tnt @ linux.ca
ckrempea @ alumni.sfu.ca
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]