What is that bug? I never recall arduino remembering the window position on startup :O
How to replicate/ what is the suggested behaviour?
Very old bug that has been identified for a long time.
See this archived issue/bug report
http://code.google.com/p/arduino/issues/detail?id=78See this archived forum discussion
http://arduino.cc/forum/index.php?action=printpage;topic=100.0Here is a simple test:
1. Open Arduino ide (official or yours)
2. Open a sketch and move/resize the window to your liking
3. Close the original window/blank sketch by clicking the red close button in upper right corner
4. In instance of the ide with your sketch, Go to the File menu and select Quit
5. Now reopen the ide
The ide will open with your last sketch already loaded in the last size/position.
Conversely, if you close the ide by clicking x button in upper right window corner, hitting Alt-F4, or right clicking the icon in window tray and selecting close, the ide will not remember sketch/size/position.
Suggested behaviorThe suggested behavior is for ide to remember sketch/size/position (Exactly the same as it does if you select File->Quit) no matter how you choose to close the app.
Additional Data from my feeble investigationThe code and capability to remember window size/position and last sketch is already in the ide. Unfortunately, it only works if you select Quit on the File menu. Check the idesettings file and the parameters for last sketch/size/position are there.
last.sketch0.path=
last.sketch0.location=
last.sketch.count=
The behavior is... If you select File->Quit it will update these parameters in the settings file. The next time you open the app, it will read these parameters and open the last sketch/size/position. If you then quit the app with a method other than File->Quit, it will not change the
path or
location parameters in the settings file, but it will set
last.sketch.count to 0. The next time you open the app it ignores the
path and
location parameters because
count is set to 0.
There is also an additional set of parameters in the setting file...
last.sketch1.path=
last.sketch1.location=
When I manually set the last sketch count to 2 (
last.sketch.count=2) in the settings file and open the ide, both of the sketches identified in
last.sketch0 and
last.sketch1 will open in their respective window size and position.
If I add an additional set of parameters for
last.sketch2... and set
last.sketch.count to 3, it will open all three sketches in their respective size/location. Looks like someone was flirting with the idea of a recent sketch list on the file menu.