[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-users] Reverting to last session's task list
From: |
Michael A Chase |
Subject: |
Re: [Pan-users] Reverting to last session's task list |
Date: |
Mon, 21 Apr 2003 07:35:19 -0700 (PDT) |
On Mon, 21 Apr 2003 06:21:08 -0700 (PDT) Michael A Chase <address@hidden> wrote:
> On Sun, 20 Apr 2003 17:07:14 -0700 (PDT) Michael A Chase
> <address@hidden> wrote:
>
> > On Sun, 20 Apr 2003 16:48:53 -0700 Duncan <address@hidden> wrote:
> >
> > > On Sun 20 Apr 2003 09:01, Michael A Chase posted as excerpted below:
> > > > When I start Pan I often get a pop-up titled "Question" with the
> > > > text "Pan appears to have crashed or been killed the last time it
> was
> > > > run. Do you want to revert to the last session's task list?".
> This
> > > > happens whether the last shutdown was normal or not.
> > > >
> > > > It appears that ~/.pan/data/tasks.xml is not always being removed
> > > > during a normal shutdown. I have been careful to make sure the
> task
> > > > counter at the bottom of the window is 0 before I shutdown, but I
> > have
> > > > not always checked for tasks.xml before starting. Naturally, now
> > that
> > > > I am, I haven't seen the pop-up again.
> > > >
> > > > OS: Redhat Linux 2.4.18-27.8.0
> > > > Pan 0.13.93 from RPM
> > >
> > > I've noticed that as well. Occasionally the dialog will popup even
> > > when all tasks were done the last time. I haven't bothered to
> > > investigate, but did figure it was due to the existence of that file
> > > from following the list.
> > >
> > > I'm wondering if certain types of failed tasks are not removed from
> > > the list properly..
> >
> > That's possible. One of the sites I get news from is frequently
> > unresponsive. I was always careful to delete the failed tasks from
> > the task list though.
> >
> > > I don't know that I've seen it on 0.13.94 yet, but then I didn't
> > > switch to it immediately, either, as I was busy recovering from a
> > > failed NVidia driver upgrade that hosed KDE, and haven't been on it
> > > that long.
> >
> > I've put a wrapper around pan to save tasks.xml if it is found at
> > startup. Naturally it hasn't happened since I added the wrapper.
>
> Now I'm thoroughly confused. My wrapper script should rename tasks.xml
> if it finds it and I tested that by creating the file with touch. I
> just checked it again, the file got renamed so there was no tasks.xml,
> but I still got the pop-up. When I look in the source, it appears that
> the only way to get the pop-up is to have at tasks.xml. Could the file
> be being created early in the start-up? The next time I see the pop-up,
> I'll look for ~/.pan/data/tasks.xml before I select an option.
In desperation, I added a loop to my wrapper script to watch for
tasks.xml for the first twenty seconds after startup.
I have 'fetch_new_and_bodies_on_startup' active. It appears that
sometimes the tasks.xml's generated by that action get written before
the following restore tasks test looks for tasks.xml.
The attached patch skips the 'fetch_new*' actions if tasks.xml exists
at startup. It is based on the 0.13.93 source.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
pan-0.13.93-mac-030421-1.patch
Description: Binary data