Howto: user-defined file associations
From andLinux
Since Beta 2 rc1 andLinux Launcher contains a special launcher called andApp.exe. The following sections describe how to create associations for a certain file type and how to create a context menu command for all file types.
How to create a custum file association
Copy the following template into a new textfile and change its suffix from .txt to .reg:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.ext] @="extfile" [HKEY_CLASSES_ROOT\extfile] @="File Type Description" [HKEY_CLASSES_ROOT\extfile\DefaultIcon] @="C:\\Program Files\\andLinux\\Launcher\\andApp.exe,0" [HKEY_CLASSES_ROOT\extfile\shell] [HKEY_CLASSES_ROOT\extfile\shell\open] [HKEY_CLASSES_ROOT\extfile\shell\open\command] @="\"C:\\Program Files\\andLinux\\Launcher\\andApp.exe\" \"my_cmd\" \"%1\""
Replace all occurrances of ext by the file extension, for which you want to define an association, e.g. conf, and my_cmd by the Linux command to run your desired application, e.g. emacs --no-splash. Note that your andLinux installation path may differ! Finally merge this file into the Windows Registry by double clicking.
How to create a custum context menu command
Copy the following template into a new textfile and change its suffix from .txt to .reg:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\andMyProg] @="MyProg (andLinux)" [HKEY_CLASSES_ROOT\*\shell\andMyProg\command] @="\"C:\\Program Files\\andLinux\\Launcher\\andApp.exe\" \"my_cmd\" \"%1\""
Replace all occurrances of MyProg by a unique name of your choice, e.g. Emacs, and my_cmd by the Linux command to run your desired application, e.g. emacs --no-splash. Note that your andLinux installation path may differ! Finally merge this file into the Windows Registry by double clicking.
To define a command for the context menu of folders, you need this template instead:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\andMyProg] @="MyProg (andLinux)" [HKEY_CLASSES_ROOT\Folder\shell\andMyProg\command] @="\"C:\\Program Files\\andLinux\\Launcher\\andApp.exe\" \"my_cmd\" \"%1\""