AminetAminet
Search:
85950 packages online
• About
• Recent
• Browse
• Search
• Upload
• Setup
• Services

comm/www/DefBrowser.lha

Mirror:Random
Showing: m68k-amigaos icongeneric icon
No screenshot available
Short:Choose the default web browser (MUI)
Author:"Renaud Schweingruber" renaud.schweingruber at protonmail.com
Uploader:Renaud Schweingruber <renaud schweingruber protonmail com>
Type:comm/www
Version:1.2
Architecture:m68k-amigaos >= 3.0.0
Date:2026-11-26
Requires:68020 or better, MUI 3.8 or newer, openurl.library 7 or newer
Distribution:Aminet
Download:comm/www/DefBrowser.lha - View contents
Readme:comm/www/DefBrowser.readme
Downloads:12

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.


Contents of comm/www/DefBrowser.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
drwxrwxr-x  1000/1000        0       0 ****** -lhd- 0000 Nov 25 19:57 DefBrowser/
drwxrwxr-x  1000/1000        0       0 ****** -lhd- 0000 Nov 25 19:57 DefBrowser/C/
-rwxr-xr-x  1000/1000     4042    6324  63.9% -lh5- 8b36 Nov 25 19:57 DefBrowser/C/OpenBrowser
drwxrwxr-x  1000/1000        0       0 ****** -lhd- 0000 Nov 25 19:57 DefBrowser/Catalogs/
drwxrwxr-x  1000/1000        0       0 ****** -lhd- 0000 Nov 25 19:57 DefBrowser/Catalogs/fran?ais/
-rw-rw-r--  1000/1000     1162    2444  47.5% -lh5- 5bf2 Nov 25 19:57 DefBrowser/Catalogs/fran?ais/DefBrowser.catalog
-rwxr-xr-x  1000/1000    25453   45788  55.6% -lh5- 78ca Nov 25 19:57 DefBrowser/DefBrowser
-rw-rw-r--  1000/1000     2570    2946  87.2% -lh5- b247 Nov 25 19:57 DefBrowser/DefBrowser.info
-rw-rw-r--  1000/1000     2899    7060  41.1% -lh5- 52dd Nov 25 19:57 DefBrowser/DefBrowser.readme
-rw-rw-r--  1000/1000     1917    2678  71.6% -lh5- a697 Nov 25 19:57 DefBrowser/DefBrowser.readme.info
drwxrwxr-x  1000/1000        0       0 ****** -lhd- 0000 Nov 25 19:57 DefBrowser/Extras/
-rw-rw-r--  1000/1000     1857    4796  38.7% -lh5- 9e74 Nov 25 19:57 DefBrowser/Extras/DefBrowser.db
-rw-rw-r--  1000/1000     2152    2828  76.1% -lh5- 99ce Nov 25 19:57 DefBrowser/Extras.info
-rwxr-xr-x  1000/1000      326     714  45.7% -lh5- 31e8 Nov 25 19:57 DefBrowser/Install-DefBrowser
-rw-rw-r--  1000/1000     1785    2790  64.0% -lh5- e21b Nov 25 19:57 DefBrowser/Install-DefBrowser.info
-rw-rw-r--  1000/1000     2152    2828  76.1% -lh5- 99ce Nov 25 19:57 DefBrowser.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        16 files   46315   81196  57.0%            Nov 26 02:55
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>