After some digging, this is a bug in QLockFile. It doesn't take process name into account. So if the pid for the session.json lockfile is re- used (easy to do after a reboot), it will act like the session file is still valid.
Qt trunk fixes this (http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qlockfile_unix.cpp?h=dev). So it's just a matter of updating Qt (or backporting the patch). ** Summary changed: - Isn't remembering old session tabs + QLockFile won't notice if the lock pid is re-used by an unrelated process ** Also affects: qtbase-opensource-src (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1500444 Title: QLockFile won't notice if the lock pid is re-used by an unrelated process To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1500444/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
