pharo-vm icon indicating copy to clipboard operation
pharo-vm copied to clipboard

Windows VM does not automatically open image file in same directory

Open JanBliznicenko opened this issue 3 years ago • 4 comments

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

JanBliznicenko avatar Aug 31 '21 08:08 JanBliznicenko

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:

image

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

image

astares avatar Aug 31 '21 08:08 astares

I will check it

tesonep avatar Oct 07 '21 16:10 tesonep

I reported this one on the Pharo issue tracker as https://github.com/pharo-project/pharo/issues/10659 .

gcorriga avatar Dec 13 '21 21:12 gcorriga

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.

gcorriga avatar Dec 13 '21 21:12 gcorriga