zshot — generic Linux build

Run in place
------------
1. Install the system packages listed in DEPENDENCIES.txt.
2. Run ./zshot from this directory.

zshot renders without a display: no X server or Xvfb is needed.

Chromium sandbox
----------------
The Chromium sandbox requires lib/zshot/chrome-sandbox to be owned by root
with mode 4755. Extraction by a regular user drops that ownership, so run
after extracting:

    sudo chown root:root lib/zshot/chrome-sandbox
    sudo chmod 4755 lib/zshot/chrome-sandbox

To run without the sandbox, pass --no-sandbox. Inside a container, pass
--container.

System install
--------------
    sudo cp -a lib/zshot /usr/lib/zshot
    sudo install -m 755 zshot /usr/bin/zshot
    sudo chown root:root /usr/lib/zshot/chrome-sandbox
    sudo chmod 4755 /usr/lib/zshot/chrome-sandbox
    sudo cp -a share/. /usr/share/

Shell completions
-----------------
share/ holds completion scripts for bash, zsh, and fish in the directories
each shell loads from under /usr/share; the system install above puts them
in place. When running in place, add one line to your shell profile instead:

    source <(/path/to/zshot --completions bash)     # ~/.bashrc
    source <(/path/to/zshot --completions zsh)      # ~/.zshrc, after compinit
    /path/to/zshot --completions fish | source      # ~/.config/fish/config.fish

Requirements
------------
glibc 2.35 or newer: Ubuntu 22.04+, Debian 12+, RHEL 10 and its rebuilds such as
Rocky Linux and AlmaLinux 10, Fedora 35+, Arch.
No X server is needed: Chromium runs on its headless (Ozone) platform.
