Dear Michael,
It looks like you've been at it quite a bit with all of this.
I like things going to tmp/
I like it even better going to tmp/rg (or whatever)
I like RG cleaning up its own mess. Not every application is as considerate.
Here is my thought:
Use QSettings create a tmp group.
Each time a tmp file is created, add a value to the group. In this case three:
a .ly file, a .ps file and a .pdf. You can just give them timestamp unique
filenames-or whatever--that way multiple processes can always (just about) have
unique temp file name.
Now when RG exits, it must clean up all the temp files listed in QSettings tmp
group.
The only conflict I see is that two instances create the same timestamp--I
don't know the probability of that happening though.
Another slight issue is what you mentioned. What do we do if RG closes before
the .pdf viewer. Well, it is suppose to be a temp file, and if the viewer is
actively reading it in, I don't think RG will get a lock on it, so it should
come back and try again after it erases everything else. If the temp file has
been read, rg should be able to delete it under the viewers feet.
Hey, it's a temp file, if the user wants to save it, the user should explicitly
save it somewhere using the viewer GUI. IT should be read only in the viewer,
and anybody with a pdf editor should be editing possibly active temp files:
They should make a proper copy first.
Those are my thoughts.
Sincerely,
Julie S.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel