I want to write a python script by which i can save the opened window states same way in mac so that all the window can be loaded automatically when computer restarts or starts after force shutdown
example : I was using visual code and my computer directly shutdown due to some reason so, next time when i start my computer the visual code will automatically opens up with the same file which i'am working on
same as in mac