allow xfce4 restart on local image

This commit is contained in:
Tobias Powalowski 2022-05-12 08:10:44 +02:00
parent dd77fbe079
commit 4115465c73

View file

@ -80,16 +80,18 @@ fi
# Launch xfce # Launch xfce
if [[ "${_L_XFCE}" == "1" ]]; then if [[ "${_L_XFCE}" == "1" ]]; then
echo -e "\033[1mStep 1/5:\033[0m Waiting for gpg pacman keyring import to finish ..." if ! [[ -e /usr/bin/startxfce4 ]]; then
_gpg_check echo -e "\033[1mStep 1/5:\033[0m Waiting for gpg pacman keyring import to finish ..."
echo -e "\033[1mStep 2/5:\033[0m Installing XFCE desktop now ..." _gpg_check
echo " This will need some time ..." echo -e "\033[1mStep 2/5:\033[0m Installing XFCE desktop now ..."
_prepare_xfce >/dev/tty7 2>&1 echo " This will need some time ..."
echo -e "\033[1mStep 3/5:\033[0m Configuring XFCE desktop ..." _prepare_xfce >/dev/tty7 2>&1
_configure_xfce >/dev/tty7 2>&1 echo -e "\033[1mStep 3/5:\033[0m Configuring XFCE desktop ..."
echo -e "\033[1mStep 4/5:\033[0m Starting avahi-daemon ..." _configure_xfce >/dev/tty7 2>&1
systemctl start avahi-daemon.service echo -e "\033[1mStep 4/5:\033[0m Starting avahi-daemon ..."
echo -e "\033[1mStep 5/5:\033[0m Launching XFCE logging is done on \033[1m/dev/tty8\033[0m ..." systemctl start avahi-daemon.service
echo -e "\033[1mStep 5/5:\033[0m Launching XFCE logging is done on \033[1m/dev/tty8\033[0m ..."
fi
startxfce4 >/dev/tty8 2>&1 startxfce4 >/dev/tty8 2>&1
echo -e "To relaunch XFCE desktop use: \033[92mstartxfce4\033[0m" echo -e "To relaunch XFCE desktop use: \033[92mstartxfce4\033[0m"
fi fi