Check Settings > Startup and Shutdown > Desktop Session and see if you use Restore previous saved session…