DefBrowser picks the web browser that opens links and HTML files on your
Amiga. There are more and more browsers for AmigaOS 3 (IBrowse, AWeb,
NetSurf, Amelinium, AmiFire, Voyager...), and each program that shows a web
page or an HTML file asks for one in its own way. DefBrowser makes one of
them the default in one place.
+---------------------------------------------------------+
| Choose the web browser that opens links and HTML files. |
| |
| Browser Program State |
| IBrowse DH1:Network/IBrowse/IBrowse |
| AWeb DH1:Network/AWeb_APL/AWeb |
| Amelinium DH1:Network/Amelinium/Amelinium default |
| |
| [Add...] [Test] [Rescan] [Clean...] |
| [x] HTML file icons (DefIcons) OK |
| [x] MIME type text/html OK |
| [Save] [Use] [Cancel] |
+---------------------------------------------------------+
What it does
------------
* Finds the browsers installed on your disks (any mounted volume, usual
drawers such as Network/ or Internet/), or lets you add any program with
"Add...". "Test" starts the selected one on a web page.
* Makes the chosen browser the default of openurl.library, the library most
programs use to show a URL (mail and news readers, IRC clients, ...).
The chosen browser goes first in OpenURL's list and is the only one
enabled; the others stay in the list, disabled, so you can come back to them
at any time. Wrong program paths in OpenURL's list are corrected on the way.
* Points HTML file icons (DefIcons, ENVARC:Sys/def_HTML.info) and the MIME
type text/html (ENVARC:MIME.prefs) at C:OpenBrowser, a small launcher that
asks openurl.library. This is done once: when you change browser later, only
OpenURL's settings change.
* Save keeps the choice (ENVARC: and ENV:), Use keeps it until the next
reboot (ENV: only), Cancel changes nothing.
* Before it changes a file for the first time, DefBrowser keeps the original
in ENVARC:DefBrowser/Backup. "Restore original files..." in the Project
menu puts them all back.
* "Clean..." deletes what the selected browser keeps on disk: its cache,
cookies, history and saved passwords (tick the ones you want; the window
shows how many files each one holds). "Clean all browsers..." in the
Project menu, or "DefBrowser CLEARALL" from a Shell, deletes all four for
every browser found. See "Cleaning" below.
* English built in, French catalog included.
C:OpenBrowser
-------------
OpenBrowser shows files and web addresses in the default browser:
OpenBrowser <file or URL> [...] [NEWWIN] [PUBSCREEN name]
OpenBrowser S:ReadMeFirst.html
OpenBrowser https://aminet.net/
OpenBrowser just start the default browser
Without a file or URL (from a Shell, or a double-click on OpenBrowser itself)
it starts the default browser on its own start page; if that browser is
already running and has an ARexx port, it is shown and brought to the front
with the commands set in OpenURL instead of starting a second copy.
From Workbench it is the default tool of HTML icons. A file is passed to the
browser in the form that browser reads (file:///Volume:drawer/file, or the
plain path for browsers that only take a path); a web address goes through
openurl.library.
You can use it anywhere a program or a menu asks for a browser, for instance
in ToolsDaemon or DirOpus menus: replace the browser's path by C:OpenBrowser
and the menu follows the default browser from then on.
Cleaning
--------
Where a browser lets you choose its cache drawer, DefBrowser reads it from
the browser's own settings instead of guessing:
IBrowse IBrowse.prefs (cache drawer); Cookies, GlobalHistory and
Passwords next to the program
AWeb ENV:AWeb3/network (cache drawer, cookies in it; T: when
that drawer does not exist); AWeb:AWeb.auth (site logins)
NetSurf Resources/Options (cache_dir, cookie_file, cookie_jar)
Amelinium cache/prefs.txt (cache_dir); cookies/, passwords/, and the
history in cache/ (its settings there are kept)
AmiFire Cache/ and User/ next to the program
A browser that is running is not cleaned (it would write these files again
when it quits): quit it first. A drawer is never emptied when it is the root
of a volume or holds the browser itself.
From a Shell:
DefBrowser CLEARALL
prints one line per browser and returns 5 (WARN) if a browser was running
or a file could not be deleted. It can go in a script, for instance
S:User-Startup or a ToolsDaemon menu.
Installation
------------
Double-click "Install-DefBrowser", or copy by hand:
DefBrowser and DefBrowser.info to SYS:Prefs/
C/OpenBrowser to C:
Catalogs/<language>/DefBrowser.catalog to LOCALE:Catalogs/<language>/
The installer keeps an icon you already have in SYS:Prefs (its position).
Adding or changing a browser
----------------------------
The list of known browsers is built in. A file named DefBrowser.db next to
the program (SYS:Prefs/DefBrowser.db) replaces it: start from
Extras/DefBrowser.db, which is the built-in list with its notes. Each browser
has the drawers where it is usually installed, its command line, its ARexx
port and commands for OpenURL (if it has any), the form in which it reads
a file from disk, and what Clean deletes. The notes say on which browser versions the values were
checked; browsers change, so check again with newer versions.
Requirements
------------
* AmigaOS 3.0 or newer, 68020 or better
* MUI 3.8 or newer
* openurl.library 7 or newer (Aminet, comm/www)
* DefIcons for the HTML icons part (optional)
Tested on an Apollo A6000 (68080) with AmigaOS 3.9, MUI 3.8 and
openurl.library 7.18, with IBrowse 3.0a, AWeb 3.6b8, NetSurf 3.11,
Amelinium 1.8.2 and AmiFire 0.9.395.
History
-------
1.2 (25.11.2026) icon set and documentation tidied, the archive holds a
single program icon
1.1 (22.11.2026) Clean: cache, cookies, history and passwords of one browser
or all of them, DefBrowser CLEARALL from a Shell;
AWeb's window comes to the front on the Workbench screen
1.0 (22.11.2026) first release
Credits
-------
openurl.library by Troels Walsted Hansen and the openurl.library Open
Source Team.
DefBrowser is freeware. Comments and bug reports are welcome at the address
above.
|