From b0edff716049ca18a80acb3dda220bd52b8410a5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 1 Sep 2011 11:16:14 +0200 Subject: [PATCH] mambabase.sh: don't try to remove /etc/xdg/autostart/mambabase.desktop because of permissions; just wipe it --- mambabase/mambabase.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mambabase/mambabase.sh b/mambabase/mambabase.sh index 00679c8..6201389 100644 --- a/mambabase/mambabase.sh +++ b/mambabase/mambabase.sh @@ -92,14 +92,15 @@ if [ "$INSTALL_BASE" = "1" ]; then dcop_write $"Removing packages that are no longer needed..." 10 rpm -q msysklogd >/dev/null && apt_get_parsed remove -y msysklogd + dcop_write $"Installing/updating openmamba base packages..." 15 + rpm -q --whatprovides $BASE_PKGS >/dev/null || apt_get_parsed install -y $BASE_PKGS + # first time: remove mambabase from autostart [ -e /home/$USER/.kde4/Autostart/mambabase.desktop ] && \ rm -f /home/$USER/.kde4/Autostart/mambabase.desktop + # ugly workaround: don't have permissions to rm file in /etc/xdg/autostart [ -e /etc/xdg/autostart/mambabase.desktop ] && \ - rm -f /etc/xdg/autostart/mambabase.desktop - - dcop_write $"Installing/updating openmamba base packages..." 15 - rpm -q --whatprovides $BASE_PKGS >/dev/null || apt_get_parsed install -y $BASE_PKGS + > /etc/xdg/autostart/mambabase.desktop fi if [ "$INSTALL_UPDATE" = "1" ]; then