Commit 9f768188 authored by Dylan Araps's avatar Dylan Araps

Theme: Fixed KDE theme not working

parent cf7cc404
...@@ -1335,13 +1335,15 @@ get_style() { ...@@ -1335,13 +1335,15 @@ get_style() {
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"
theme="$(grep "^[^#]*$kde" "$kde_config_file")" theme="$(grep "^[^#]*${kde}" "$kde_config_file")"
theme="${theme/${kde}*=}" theme="${theme/${kde}*=}"
theme="$(uppercase "$theme")" theme="$(uppercase "$theme")"
gtk_shorthand="on" gtk_shorthand="on"
return else
err "Theme: KDE config files not found, skipping."
fi fi
return
;; ;;
*"Cinnamon"*) *"Cinnamon"*)
...@@ -2846,6 +2848,9 @@ kde_config_dir() { ...@@ -2846,6 +2848,9 @@ kde_config_dir() {
elif type -p kde-config >/dev/null 2>&1; then elif type -p kde-config >/dev/null 2>&1; then
kde_config_dir="$(kde-config --localprefix)" kde_config_dir="$(kde-config --localprefix)"
elif [[ -d "${HOME}/.kde4" ]]; then
kde_config_dir="${HOME}/.kde4"
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment