Good trick, thanks for that ! ... I thought that Linux was not able to handle windows registry.
On my last Hatch plugin ; I use that in InitPlugin() to detect if linux or win is used.
Public Shared WinOS As Boolean = True
Public Shared Sub InitPlugin(ByRef ui As CamBamUI)
'test for Linux/Win version
If My.Computer.Info.OSPlatform = "Unix" Then 'plugin used on linux version
WinOS = False
ThisApplication.AddLogMessage(2, "Hatch plugin Operating System: " & My.Computer.Info.OSPlatform)