pharo-vm
pharo-vm copied to clipboard
Windows VM does not automatically open image file in same directory
Hello,
Pharo 8 (and previous) Windows VMs opened, by default, image of same name as executable. So if I had MyPharo1.exe, MyPharo1.image and MyPharo1.changes and double click MyPharo1.exe, it opens the image.
Pharo 9 and 10 VMs lost this feature and require picking the image manually.
Steps to reproduce:
- Extract Windows VM files and image files (incl. changes etc.) to the same directory
- Rename .exe, .image and .changes to same base name, like MyPharo.exe
- double click it Expected behavior: The image opens Actual behvaior: File selection dialog opens
Dont know if this still applies for Pharo VM butthe Squeak VM for Windows allowed to have an INI file (with the name of the executable, so Squeak.exe looked for Squeak.ini). Its still in use in Squeak distribution - but it looks like not in Pharo:
In this ini file one was able to give several parameters to influence how squeak started, also the name of the image file by using an ImageFile parameter in the global section: See http://squeakvm.org/win32/settings.html
http://squeakvm.org/win32/settings.html
I will check it
I reported this one on the Pharo issue tracker as https://github.com/pharo-project/pharo/issues/10659 .
The issue doesn't appear to be linked to the values in the .ini file - if I download a new vm+image from https://files.pharo.org/get-files/80/ , and extract all contents on the same directory, there is no .ini file and yet Pharo.exe does start the image as expected.
Furthermore the .ini file appears to be created automatically by Pharo.exe if not present.