diff options
author | Michael Janczyk | 2008-09-02 21:31:58 +0200 |
---|---|---|
committer | Michael Janczyk | 2008-09-02 21:31:58 +0200 |
commit | 5e7e0813aee06141aa7e5f333f04f040c4d9ba05 (patch) | |
tree | 83dc5212195c9943b2e837e0653037ebd8dd50c3 | |
parent | ugly hack to ensure, that .kde-.../share/apps directory exists, otherwise KDE... (diff) | |
download | core-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
4 files changed, 7 insertions, 4 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Debian.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Debian.pm index ded3358b..273c7a81 100644 --- a/os-plugins/plugins/desktop/OpenSLX/Distro/Debian.pm +++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Debian.pm @@ -66,7 +66,7 @@ sub setupKDEHOME awk {'print $2'})-debian" End-of-Here - spitFile($path, $script); + appendFile($path, $script); return; } diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Gentoo.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Gentoo.pm index e52dd410..1f35ee9d 100644 --- a/os-plugins/plugins/desktop/OpenSLX/Distro/Gentoo.pm +++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Gentoo.pm @@ -37,7 +37,7 @@ sub setupKDEHOME awk {'print $2'})-gentoo" End-of-Here - spitFile($path, $script); + appendFile($path, $script); return; } diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Suse.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Suse.pm index 642f3ed9..e9956153 100644 --- a/os-plugins/plugins/desktop/OpenSLX/Distro/Suse.pm +++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Suse.pm @@ -96,7 +96,7 @@ sub setupKDEHOME awk {'print $2'})-suse" End-of-Here - spitFile($path, $script); + appendFile($path, $script); return; } 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," \ |