Fixes to issue #622 regarding LXQt on LUbuntu. Should be detected fine now. Along with some miscellanious LXQt aditions.

This commit is contained in:
KittyKatt
2019-10-06 22:03:19 -05:00
parent c6a981a39f
commit 55af6c85e1

View File

@@ -2024,7 +2024,7 @@ detectde () {
fi
fi
if [ -n "$DE" ]; then
if [[ -z "$DE" || "$DE" = "Not Present" ]]; then
# fallback to checking $DESKTOP_SESSION
case "${DESKTOP_SESSION,,}" in
'gnome'*)
@@ -2143,6 +2143,11 @@ detectde () {
DE="${DE} ${DEver}"
fi
fi
elif [[ ${DE} == "LXQt" ]]; then
if type -p lxqt-about >/dev/null 2>&1; then
DEver=$(lxqt-about --version | awk '/^liblxqt/ {print $2}')
DE="${DE} ${DEver}"
fi
elif [[ ${DE} == "MATE" ]]; then
if type -p mate-session >/dev/null 2>&1; then
DEver=$(mate-session --version)
@@ -2515,6 +2520,10 @@ detectwmtheme () {
elif [[ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/lxde-rc.xml && $DE == "LXDE" ]]; then
Win_theme="$(awk -F"[<,>]" '/<theme/ { getline; print $3 }' "${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/lxde-rc.xml")";
fi
if [ "${DE}" = "LXQt" ]; then
de_theme="$(awk -F'=' '/^theme/ {print $2}' ${HOME}/.config/lxqt/lxqt.conf)"
Win_theme="${de_theme} / ${Win_theme}"
fi
;;
'PekWM')
if [ -f "$HOME/.pekwm/config" ]; then