C@rb0n wrote:mattcoz wrote:I posted this idea in the RestartFirefox thread, but it probably makes more sense here. I'd like a seperate option to save the session when restarting Firefox, as opposed to exiting normally. I know I could save it myself, but this would be nice to have.
Read zeniko's comment at the end of the Restart Firefox thread. Restart Firefox does not call a function that would let Session Manager know what's going on. If it did, Session Manager would properly support restoring session on restarting.
However, zeniko, is there not possibly a way Session Manager can work around this? For instance, Session Saver is able to restore sessions on restart in spite of Restart Firefox's flaws. Couldn't Session Manager determine that: no crash occurred but a "normal" exit did not occur, yet the browser did exit? I'm assuming you could detect this using a state variable with its value written to the session file and checked on the next read of the file.
I understand RestarFirefox's flaw, but assuming that is fixed there will still need to be a way for Session Manager to distinguish between a normal exit and a restart. Also, even if someone is not using the RestartFirefox extension, they still might want to save their session only when restarting, such as after a software update. This would be very useful for nightly updates.