From 5e7e0813aee06141aa7e5f333f04f040c4d9ba05 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Tue, 2 Sep 2008 19:31:58 +0000 Subject: 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 --- os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm') 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," \ -- cgit v1.2.3-55-g7522