Total rewrite #15
22
README.md
22
README.md
@ -7,28 +7,32 @@ send `image/jpeg` MIME type files to your image viewer.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Arch
|
### Arch Linux
|
||||||
|
|
||||||
I maintain a package [on the
|
I maintain a package [on the
|
||||||
AUR](https://aur.archlinux.org/packages/xdg-sanity).
|
AUR](https://aur.archlinux.org/packages/xdg-sanity).
|
||||||
|
|
||||||
### From Source
|
### From Source
|
||||||
|
|
||||||
First, make sure you have `curl(1)` and `handlr(1)` installed. Then, clone this
|
First, make sure you have `curl(1)`, `xdg-utils(1)` (or an alternative like
|
||||||
repository and move the `xdg-sanity/` folder into `/etc` and `xdg-sanity.sh` to
|
[handlr](https://github.com/chmln/handlr), and
|
||||||
`xdg-sanity` wherever your operating system stores locally-installed binaries.
|
[tomcat](https://git.tebibyte.media/emma/tomcat) installed. Then, clone this
|
||||||
This is usually `/usr/local/bin`. Make sure the installation location is in your
|
repository and move the `xdg-sanity` binary wherever your operating system
|
||||||
|
stores locally-installed binaries. This is usually `/usr/local/bin` or
|
||||||
|
`$HOME/.local/bin` for your user. Make sure the installation location is in your
|
||||||
`$PATH`.
|
`$PATH`.
|
||||||
|
|
||||||
Create a `xdg-sanity.desktop` file either manually or with `gendesk(1)`,
|
Create an `xdg-sanity.desktop` file either manually or with `gendesk(1)`,
|
||||||
placing it, also, where your OS stores locally-installed `.desktop` files,
|
placing it, also, where your OS stores locally-installed `.desktop` files,
|
||||||
usually `/usr/local/applications`. Set your default web browser to that
|
usually `/usr/local/applications`. Set your default web browser to that
|
||||||
`.desktop` file.
|
`.desktop` file with `xdg-settings(1)` or an equivalent.
|
||||||
|
|
||||||
Add your default web browser to `/etc/xdg-sanity/xdg-sanity.conf` so the
|
Add your default web browser to `$XDG_CONFIG_HOME/xdg-sanity.toml` so the
|
||||||
script can forward links to it.
|
script can forward links to it.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
|
`xdg-sanity [RESOURCE]`
|
||||||
|
|
||||||
Open links from applications outside your web browser as normal. Alternatively,
|
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.
|
you can call `xdg-sanity` directly with the only argument accepted being a URI.
|
||||||
|
Loading…
Reference in New Issue
Block a user