My inkscape crashed and I didn't save my work it saved it for me but now I don't know where it is

Asked by Morgan

Well I know it told me what it was saved as however I don't think it told me what folder it was in (either that or I didn't read the message properly) All i want to know is where in my computer is it saved at?

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Liam P. White (liampwhite) said :
#1

This is the code snippet that will decide where Inkscape autosaves when it crashes; it tries each one of these in succession and if none succeed no autosave file will be written.

// Find a location
const char* locations[] = {
    doc->getBase(),
    g_get_home_dir(),
    g_get_tmp_dir(),
    curdir,
    inkscapedir
};

doc->getBase()
   The most common one. It saves the file wherever your SVG file originally was before the crash.

g_get_home_dir()
    Your home directory. On OS X, this is /Users/you, and on Windows it's C:\Users\you\. Linux, usually /home/you/.

g_get_tmp_dir()
    The temporary directory. Often on Windows this resolves to %AppData%\Local\Temp; on OS X or Linux it is most commonly /tmp/.

curdir
    If you started Inkscape in command line mode the current working directory will be wherever you cd'ed to when you launched the application. If you started it from a shortcut the current working dir will most frequently be where that shortcut is.

inkscapedir
    A last resort, as this place is often non-writable. /Applications/Inkscape.app/ on OS X, %ProgramFiles%\Inkscape on Windows.

Can you help with this problem?

Provide an answer of your own, or ask Morgan for more information if necessary.

To post a message you must log in.