<commit_before>use-open-browser
================

Linux shell script run instead of default browser with a url, chooses browser to open with based on currently open browser with preference/optionally url-pattern controlled choice

Not for the technically inexperienced in Linux/config file manual editing.

INSTALL
-------
Place use-open-browser and use-open-browser.desktop files here. Yes, there's no package for it or automatic install/uninstall yet. I've built rpm's by hand before but deb's, not really, was a long time ago I did stuff with 'em.

* /usr/share/applications/use-open-browser.desktop
* /usr/bin/use-open-browser

CONFIGURE
---------
Local config file in your $HOME will override any in /etc, it tries to source the following config scripts (ie must be in 'sh' style NAME=value format, one name per line is best):

* /etc/use-open-browser.cf
* $HOME/.use-open-browser.cf

It may also be run manually on the command line with a url, to test or obtain specific behaviour. Though using gnome-open or xdg-open or your desktop's equivalent with the url as parameter is far more portable and safer and works when use-open-browser isn't installed :)

ERRORS
------
If the given url doesn't match, it will attempt to report the error with an error dialog for your system, based on ubuntu/gnome usage at present, and via the terminal if it can't trivially find the display manager to open a window with.

Beware: it is currently buggy, you will see this too often in trivial circumstances sometimes (eg. no browser open and the English day name ends in a y or something)
<commit_msg>more details how to install it as the new default browser<commit_after>use-open-browser
================

Linux shell script run instead of default browser with a url, chooses browser to open with based on currently open browser with preference/optionally url-pattern controlled choice

Not for the technically inexperienced in Linux/config file manual editing.

INSTALL
-------
Place use-open-browser and use-open-browser.desktop files here. Yes, there's no package for it or automatic install/uninstall yet. I've built rpm's by hand before but deb's, not really, was a long time ago I did stuff with 'em.

* /usr/share/applications/use-open-browser.desktop
* /usr/bin/use-open-browser

Then use the regular "default applications" setting (the "Details" item in "All Settings" in Ubuntu with Unity, ie. 12.10 onwards, the 2nd item down on the left - typing "details" into the unity search bar will find it) to change your default browser to "Use Active Web Browser".

CONFIGURE
---------
Local config file in your $HOME will override any in /etc, it tries to source the following config scripts (ie must be in 'sh' style NAME=value format, one name per line is best):

* /etc/use-open-browser.cf
* $HOME/.use-open-browser.cf

It may also be run manually on the command line with a url, to test or obtain specific behaviour. Though using gnome-open or xdg-open or your desktop's equivalent with the url as parameter is far more portable and safer and works when use-open-browser isn't installed :)

ERRORS
------
If the given url doesn't match, it will attempt to report the error with an error dialog for your system, based on ubuntu/gnome usage at present, and via the terminal if it can't trivially find the display manager to open a window with.

Beware: it is currently buggy, you will see this too often in trivial circumstances sometimes (eg. no browser open and the English day name ends in a y or something)

{'fraction_non_alphanumeric': 0.07580507267027643, 'fraction_numerical': 0.0014249073810202336, 'mean_word_length': 4.02865329512894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3326439', 'n_tokens_mistral': 931, 'n_tokens_neox': 872, 'n_words': 519}