mambabase.sh: don't try to remove /etc/xdg/autostart/mambabase.desktop because of permissions; just wipe it
This commit is contained in:
parent
fd9a15dea5
commit
b0edff7160
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user