When running on a Debian-based system, such as Ubuntu, /bin/sh
is provided by DASH, not BASH.
This means that BASHisms are unsupported. There are two BASH variable substition instances within
the code of xdg-settings.in
that cause KDE users to be unable to find the current web browser
because the script dies when hitting this unsupported code.
- Replace
${variable:0:1}
withprintf
-based equivalent.
Fixes #10
Signed-off-by: Dani Llewellyn dani@bowlhat.net