WebBrowser [ options ]
This enables to start a self-defined web browser using your special options thru an icon on the 'Desktop' (as when you invoked run -i WebBrowser).
In addition it is possible to define the bin/WebBrowser.exe program as system wide default to be used when clicking on HTML files, as *.html or *.htm using the Windows™ dialog in 'File Explorer' where default applications can be specified.
To configure the WebBrowser to be started, add an application with the name WebBrowser to the etc/run.cfg file.
Example etc/run.cfg entry:
: WebBrowser;Opera\OperaPortable.exe;--user-data-dir="%INSTALLDRIVE%:\data\Opera\%USERNAME%";; :
This definition would start the Opera web browser saving the user profile data to the %INSTALLDRIVE%:\data\Opera\%USERNAME% directory.
Of course the WebBrowser application name can also be added as an alias to an already existing entry in the run.cfg file:
: Opera,WebBrowser;OperaPortable\OperaPortable.exe; .... :
The positive "side effect" is, that the web browser (Opera in this example) also can be started using run WebBrowser from the command line, a shortcut or an other program starter, as pstart(1), qsel(1) and hotkeyp(1).
This allows to apply certain adjustments or cleanups ahead of the browser start.
The template lib/WebBrowser.PREEXEC.cmd can be copied to var/scripts/WebBrowser.PREEXEC.cmd and used as a starting point.
This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.