[Windows] Drop a changeset onto an image file to start the image and install the changeset

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Windows] Drop a changeset onto an image file to start the image and install the changeset

Christoph Thiede

Hi all Windows users of Squeak,


I wrote a simple registry file configures the .image file extension under Windows to be associated with Squeak.exe. In particular, this adds the following enhancements to the image file experience within the Windows shell:

- .image files are displayed with a Squeak icon and a correct description in the explorer & related places

- double-click an .image file to run it with Squeak.exe

- drag a .cs/.st file onto an image file to run it with Squeak.exe and immediately install the changeset/Smalltalk file into the image.


The .reg file is available here: https://gist.github.com/LinqLover/7e917a103763facb8a6fe20ba154b43f

To install it, download the file, double-click it, and confirm the prompt.

It assumes your Squeak.exe is located in C:\Program Files\Squeak\; if you have installed it to a different path, all references to the executable need to be updated respectively.


This might also become more interesting in connection with an OpenSmalltalk Launcher, provided that it will exist at some near time in the future (see http://forum.world.st/Re-Unity-Happens-One-Step-at-a-Time-was-Re-Porting-my-programs-from-Squeak-3-10-2-to-3-5-td5122478.html). :-)


Best,
Christoph


Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: [Windows] Drop a changeset onto an image file to start the image and install the changeset

Jakob Reschke
Hi Christoph,

Glad you are tapping into another favorite subject of mine (Windows file types)!

HKEY_CLASSES_ROOT is a merged view that is supposed to be read from only. Instead put the keys under HKEY_CURRENT_USER\Software\Classes\ and it should work equally well and only apply to the current user. Writing the keys will therefore also not require elevated privileges.

Kind regards,
Jakob


Thiede, Christoph <[hidden email]> schrieb am Sa., 14. Nov. 2020, 20:47:

Hi all Windows users of Squeak,


I wrote a simple registry file configures the .image file extension under Windows to be associated with Squeak.exe. In particular, this adds the following enhancements to the image file experience within the Windows shell:

- .image files are displayed with a Squeak icon and a correct description in the explorer & related places

- double-click an .image file to run it with Squeak.exe

- drag a .cs/.st file onto an image file to run it with Squeak.exe and immediately install the changeset/Smalltalk file into the image.


The .reg file is available here: https://gist.github.com/LinqLover/7e917a103763facb8a6fe20ba154b43f

To install it, download the file, double-click it, and confirm the prompt.

It assumes your Squeak.exe is located in C:\Program Files\Squeak\; if you have installed it to a different path, all references to the executable need to be updated respectively.


This might also become more interesting in connection with an OpenSmalltalk Launcher, provided that it will exist at some near time in the future (see http://forum.world.st/Re-Unity-Happens-One-Step-at-a-Time-was-Re-Porting-my-programs-from-Squeak-3-10-2-to-3-5-td5122478.html). :-)


Best,
Christoph



Reply | Threaded
Open this post in threaded view
|

Re: [Windows] Drop a changeset onto an image file to start the image and install the changeset

Christoph Thiede

Hi Jakob,


thanks for the tip, never heard of this before! I have updated the gist accordingly. :-)


Best,

Christoph


PS: I forgot to mention that this change requires System-ct.1189 (inbox) to work correctly.

Von: Squeak-dev <[hidden email]> im Auftrag von Jakob Reschke <[hidden email]>
Gesendet: Samstag, 14. November 2020 22:15:16
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] [Windows] Drop a changeset onto an image file to start the image and install the changeset
 
Hi Christoph,

Glad you are tapping into another favorite subject of mine (Windows file types)!

HKEY_CLASSES_ROOT is a merged view that is supposed to be read from only. Instead put the keys under HKEY_CURRENT_USER\Software\Classes\ and it should work equally well and only apply to the current user. Writing the keys will therefore also not require elevated privileges.

Kind regards,
Jakob


Thiede, Christoph <[hidden email]> schrieb am Sa., 14. Nov. 2020, 20:47:

Hi all Windows users of Squeak,


I wrote a simple registry file configures the .image file extension under Windows to be associated with Squeak.exe. In particular, this adds the following enhancements to the image file experience within the Windows shell:

- .image files are displayed with a Squeak icon and a correct description in the explorer & related places

- double-click an .image file to run it with Squeak.exe

- drag a .cs/.st file onto an image file to run it with Squeak.exe and immediately install the changeset/Smalltalk file into the image.


The .reg file is available here: https://gist.github.com/LinqLover/7e917a103763facb8a6fe20ba154b43f

To install it, download the file, double-click it, and confirm the prompt.

It assumes your Squeak.exe is located in C:\Program Files\Squeak\; if you have installed it to a different path, all references to the executable need to be updated respectively.


This might also become more interesting in connection with an OpenSmalltalk Launcher, provided that it will exist at some near time in the future (see http://forum.world.st/Re-Unity-Happens-One-Step-at-a-Time-was-Re-Porting-my-programs-from-Squeak-3-10-2-to-3-5-td5122478.html). :-)


Best,
Christoph



Carpe Squeak!