summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm')
-rw-r--r--os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm
index 2777dc13..dbd12416 100644
--- a/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm
+++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm
@@ -152,9 +152,9 @@ sub setupGDMScript
# activate theme only if the corresponding xml file is found
# (otherwise fall back to default theme of vendor-OS)
if [ -n "\$desktop_theme" ]; then
- thdir=/opt/openslx/plugin-repo/desktop/themes/\$desktop_theme/gdm
+ thdir=/opt/openslx/plugin-repo/desktop/themes/gdm
theme=\$desktop_theme
- if [ -e /mnt\$thdir/\$theme/\$theme.xml ]; then
+ if [ -e /mnt\$thdir/\$theme/theme.xml ]; then
sed -i "s,\\[greeter\\],[greeter]\\nGraphicalThemeDir=\$thdir," \\
/mnt$configFile
sed -i "s,\\[greeter\\],[greeter]\\nGraphicalTheme=\$theme," \\
@@ -298,10 +298,10 @@ sub setupKDMScript
# activate theme only if the corresponding xml file is found
# (otherwise fall back to default theme of vendor-OS)
if [ -n "\$desktop_theme" ]; then
- thdir=/opt/openslx/plugin-repo/desktop/themes/\$desktop_theme/kdm
theme=\$desktop_theme
- if [ -e /mnt\$thdir/\$theme.xml ]; then
- sed -i "s,\\[X-\\*-Greeter\\],[X-*-Greeter]\\nTheme=\$thdir," \\
+ 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," \\
/mnt$configFile
sed -i "s,\\[X-\\*-Greeter\\],[X-*-Greeter]\\nUseTheme=true," \\
/mnt$configFile