|2 months ago|
|xdg-sanity||3 months ago|
|LICENSE||3 months ago|
|README.md||2 months ago|
|xdg-sanity.sh||3 months ago|
xdg-sanity script is built to replace your default web browser in your
desktop/XDG settings. It intercepts http/s URIs sent to the default browser by
xdg-open and sends it to the appropriate application. For example, it will
image/jpeg MIME type files to your image viewer.
I maintain a package on the AUR.
First, make sure you have
handlr(1) installed. Then, clone this
repository and move the
xdg-sanity/ folder into
xdg-sanity wherever your operating system stores locally-installed binaries.
This is usually
/usr/local/bin. Make sure the installation location is in your
xdg-sanity.desktop file either manually or with
placing it, also, where your OS stores locally-installed
/usr/local/applications. Set your default web browser to that
Add your default web browser to
/etc/xdg-sanity/xdg-sanity.conf so the
script can forward links to it.
Open links from applications outside your web browser as normal. Alternatively,
you can call
xdg-sanity directly with the only argument accepted being a URI.