mambabase: use /etc/xdg/autostart to set autostart for different dm's
This commit is contained in:
parent
2022cd034d
commit
fd9a15dea5
@ -92,14 +92,11 @@ 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
|
||||
|
||||
# first time: remove mamba from user autostart
|
||||
[ -e /home/$USER/.kde/Autostart/mambabase.desktop ] && {
|
||||
rm -f /home/$USER/.kde/Autostart/mambabase.desktop
|
||||
[ -e /home/$USER/.kde/share/config/ktiprc ] && \
|
||||
rm -f /home/$USER/.kde/share/config/ktiprc
|
||||
}
|
||||
# first time: remove mambabase from autostart
|
||||
[ -e /home/$USER/.kde4/Autostart/mambabase.desktop ] && \
|
||||
rm -f /home/$USER/.kde4/Autostart/mambabase.desktop
|
||||
[ -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
|
||||
|
@ -115,9 +115,10 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
|
||||
#mkdir /home/$INSTALL_USER/Desktop
|
||||
chmod 711 /home/$INSTALL_USER
|
||||
#cp /usr/share/openmamba/installer/*.txt /home/$INSTALL_USER/Desktop/
|
||||
mkdir -p /home/$INSTALL_USER/.kde4/Autostart
|
||||
cp /usr/share/openmamba/mambabase/mambabase-autostart.desktop /home/$INSTALL_USER/.kde4/Autostart/mambabase.desktop
|
||||
chmod 711 /home/$INSTALL_USER/.kde4/Autostart/mambabase.desktop
|
||||
|
||||
cp /usr/share/openmamba/mambabase/mambabase-autostart.desktop /etc/xdg/autostart/mambabase.desktop
|
||||
chown $INSTALL_USER /etc/xdg/autostart/mambabase.desktop
|
||||
chmod 644 /etc/xdg/autostart/mambabase.desktop
|
||||
|
||||
# create home kde configuration directory
|
||||
mkdir -p /home/$INSTALL_USER/.kde4/share/config
|
||||
|
Loading…
Reference in New Issue
Block a user