Fix detection on deepin

This commit is contained in:
Dylan 2016-04-01 18:46:37 +11:00
parent 82e4fce63b
commit e2e3e4fd77

View file

@ -816,7 +816,6 @@ getwmtheme () {
case "$wm" in case "$wm" in
'BudgieWM') wmtheme="$(gsettings get org.gnome.desktop.wm.preferences theme)" ;; 'BudgieWM') wmtheme="$(gsettings get org.gnome.desktop.wm.preferences theme)" ;;
'E16') wmtheme="$(awk -F"= " '/theme.name/ {print $2}' "$HOME/.e16/e_config--0.0.cfg")";; 'E16') wmtheme="$(awk -F"= " '/theme.name/ {print $2}' "$HOME/.e16/e_config--0.0.cfg")";;
'Metacity'*) wmtheme="$(gconftool-2 -g /apps/metacity/general/theme 2>/dev/null)" ;;
'Sawfish') wmtheme="$(awk -F ")" '/\(quote default-frame-style/ {print $2}' "$HOME/.sawfish/custom")" ;; 'Sawfish') wmtheme="$(awk -F ")" '/\(quote default-frame-style/ {print $2}' "$HOME/.sawfish/custom")" ;;
'Cinnamon' | 'Muffin' | 'Mutter (Muffin)') 'Cinnamon' | 'Muffin' | 'Mutter (Muffin)')
@ -834,9 +833,13 @@ getwmtheme () {
fi fi
;; ;;
'Deepin WM') 'Metacity'*)
type -p gsettings >/dev/null 2>&1 && \ if [ "$de" == "Deepin" ]; then
wmtheme="$(gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme)" wmtheme="$(gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme 2>/dev/null)"
else
wmtheme="$(gconftool-2 -g /apps/metacity/general/theme 2>/dev/null)"
fi
;; ;;
'E17' | 'Enlightenment') 'E17' | 'Enlightenment')