When I launch spyder from the command line, the spyder window launches with the previous state as is expected, then also opens the spyder executable file, in my case ...