diff options
Diffstat (limited to 'os-plugins/plugins/desktop/OpenSLX')
| -rw-r--r-- | os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm index a37b42f9..a85329f7 100644 --- a/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm +++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm @@ -154,7 +154,7 @@ sub setupGDMScript if [ -n "\$desktop_theme" ]; then thdir=/opt/openslx/plugin-repo/desktop/themes/gdm theme=\$desktop_theme - if [ -e /mnt\$thdir/\$theme/theme.xml ]; then + if [ -e /mnt\$thdir/\$theme/*.xml ]; then sed -i "s,\\[greeter\\],[greeter]\\nGraphicalThemeDir=\$thdir," \\ /mnt$configFile sed -i "s,\\[greeter\\],[greeter]\\nGraphicalTheme=\$theme," \\ @@ -316,9 +316,9 @@ sub setupKDMScript # (otherwise fall back to default theme of vendor-OS) if [ -n "\$desktop_theme" ]; then theme=\$desktop_theme - thfile=/opt/openslx/plugin-repo/desktop/themes/kdm/\$theme/theme.xml - if [ -e /mnt\$thfile ]; then - sed -i "s,\\[X-\\*-Greeter\\],[X-*-Greeter]\\nTheme=\$thfile," \\ + thdir=/opt/openslx/plugin-repo/desktop/themes/kdm/\$theme + if [ -e /mnt\$thdir/*.xml ]; then + sed -i "s,\\[X-\\*-Greeter\\],[X-*-Greeter]\\nTheme=\$thdir," \\ /mnt$configFile sed -i "s,\\[X-\\*-Greeter\\],[X-*-Greeter]\\nUseTheme=true," \\ /mnt$configFile |
