summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
diff options
context:
space:
mode:
authorMichael Janczyk2008-09-02 21:31:58 +0200
committerMichael Janczyk2008-09-02 21:31:58 +0200
commit5e7e0813aee06141aa7e5f333f04f040c4d9ba05 (patch)
tree83dc5212195c9943b2e837e0653037ebd8dd50c3 /os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
parentugly hack to ensure, that .kde-.../share/apps directory exists, otherwise KDE... (diff)
downloadcore-5e7e0813aee06141aa7e5f333f04f040c4d9ba05.tar.gz
core-5e7e0813aee06141aa7e5f333f04f040c4d9ba05.tar.xz
core-5e7e0813aee06141aa7e5f333f04f040c4d9ba05.zip
changed spitFile to appendFile
thougt spitFile would do appendFile ;), but it replaces files :( git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2193 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm')
-rw-r--r--os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
index 1c78b0c5..2ba2f85d 100644
--- a/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
+++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
@@ -133,7 +133,10 @@ sub setupKDEHOME
awk {'print $2'})-ubuntu"
End-of-Here
- spitFile($path, $script);
+ appendFile($path, $script);
+ # TODO: a nicer solution to this hack
+ # ensures, that .kde-.../share/apps directory exists
+ # otherwise KDE progs will complain every time with a warning window
system('grep -q "mkdir -m 700 -p \$kdehome/share/apps" /usr/bin/startkde ||\
sed -i -e "s,mkdir -m 700 -p \$kdehome/share/config,\
mkdir -m 700 -p \$kdehome/share/config\nmkdir -m 700 -p \$kdehome/share/apps," \