/usr/bin/xdg-settings: 735: Bad substitution
as reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950495
The shabang of xdg-settings is #!/bin/sh. Debian links /bin/dash to /bin/sh, but with dash x"${browser:0:1}" does not work. Best, Luca.