Commit 33256b26 authored by Michael Straube's avatar Michael Straube

Theme: Fix detection on KDE

Partial fix for #766
parent 20185e51
......@@ -1530,7 +1530,7 @@ get_style() {
if [[ -f "${kde_config_dir}/kdeglobals" ]]; then
kde_config_file="${kde_config_dir}/kdeglobals"
theme="$(grep "^[^#]*${kde}" "$kde_config_file")"
theme="$(grep "^${kde}" "$kde_config_file")"
theme="${theme/${kde}*=}"
theme="$(uppercase "$theme")"
......@@ -1648,7 +1648,7 @@ get_theme() {
gsettings="gtk-theme"
gconf="gtk_theme"
xfconf="/Net/ThemeName"
kde="widgetStyle"
kde="Name"
get_style
}
......
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