I suggest creating a uniquely-named temporary directory and putting all the files associated with a single run of Rosegarden into that. Then deleting the whole directory on exit.
The directory could also contain a pid file for the "owning" instance of Rosegarden; if RG finds on startup any existing directories whose pid files refer to non-running pids, it should clean them up. Sonic Visualiser does it exactly this way, so I have some code hanging around that we can reuse. Unless someone can say why it's a bad idea, in which case I'd like to know about it! Chris ------------------------------------------------------------------------------ _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
