Jon A. Cruz wrote:
On May 6, 2006, at 2:16 AM, Jasper van de Gronde wrote:
How about using SHGetSpecialFolderPath? Should work on pretty much any Windows system and is reasonably easy to use.
Example usage (prints the location of the My Documents directory for the current user):
#define _WIN32_IE 0x0400
Nope!
fails on Windows 95 and Windows NT 4.0 that don't have extra newer stuff installed.
:-)
(notice that say I have version such-and-such of Internet Explorer or later)
It would, but only on really ancient versions, and as I understood they're not supported anyway (and they probably don't have a My Documents directory to begin with, so Inkscape could fall back on the current behaviour if it isn't supported). If it's deemed too much trouble then that's fine, but I think it would be nice if Inkscape's autosave feature would be a bit more obvious by saving files to a less obscure directory. Of course alternatively (or additionally) Inkscape could offer to open auto-saved documents on the next launch, but that might be quite a bit more complex to do correctly.