Add support for older KDE versions

This commit is contained in:
Dylan 2016-02-16 10:31:13 +11:00
parent 1b1bfa2dab
commit 0427eb3f05

8
fetch
View file

@ -1185,13 +1185,19 @@ getgtk () {
if type -p kde5-config >/dev/null 2>&1; then
kde_config_dir=$(kde5-config --localprefix)
elif type -p kde4-config >/dev/null 2>&1; then
kde_config_dir=$(kde4-config --localprefix)
elif type -p kde-config >/dev/null 2>&1; then
kde_config_dir=$(kde-config --localprefix)
fi
if [ -f "${kde_config_dir}/share/config/kdeglobals" ]; then
kde_config_file="${kde_config_dir}/share/config/kdeglobals"
gtk3theme=$(grep "^[^#]*$kde" "$kde_config_file")
gtk3theme=${gtk3theme/${kde}*=}
fi
fi
;;
"Cinnamon")