Add support for older KDE versions
This commit is contained in:
parent
1b1bfa2dab
commit
0427eb3f05
1 changed files with 11 additions and 5 deletions
8
fetch
8
fetch
|
@ -1185,13 +1185,19 @@ getgtk () {
|
||||||
if type -p kde5-config >/dev/null 2>&1; then
|
if type -p kde5-config >/dev/null 2>&1; then
|
||||||
kde_config_dir=$(kde5-config --localprefix)
|
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
|
if [ -f "${kde_config_dir}/share/config/kdeglobals" ]; then
|
||||||
kde_config_file="${kde_config_dir}/share/config/kdeglobals"
|
kde_config_file="${kde_config_dir}/share/config/kdeglobals"
|
||||||
|
|
||||||
gtk3theme=$(grep "^[^#]*$kde" "$kde_config_file")
|
gtk3theme=$(grep "^[^#]*$kde" "$kde_config_file")
|
||||||
gtk3theme=${gtk3theme/${kde}*=}
|
gtk3theme=${gtk3theme/${kde}*=}
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Cinnamon")
|
"Cinnamon")
|
||||||
|
|
Loading…
Reference in a new issue