support opening last read document after startup.