start-pulseaudio-x11: fix KDE version check
authorRickie Schroeder <dqlajq3c66@b6zwi.anonbox.net>
Wed, 16 Oct 2019 19:33:19 +0000 (19:33 +0000)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 31 Oct 2019 13:42:41 +0000 (15:42 +0200)
commit470c210cdc865be52cc2bd42cdb14d5d162f6d50
treed5cea8a195d944b789ae64a85b74480d48c4465b
parentaee67ba8061737d834c9943f0a5228e3366d2382
start-pulseaudio-x11: fix KDE version check

Current check wasn't working in case when $DESKTOP_SESSION wasn't set
which happens when session is started without display manager like sddm.
Parsing "plasmashell -v" output should be more reliable and less hacky.

This also changes legacy backticks `...` to modern $(...) as recommended
by shellcheck:
https://github.com/koalaman/shellcheck/wiki/SC2006

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/751
src/daemon/start-pulseaudio-x11.in