From 922e6e463b81cc2627c8c502b2ca77d25ee5391e Mon Sep 17 00:00:00 2001 From: bill-auger Date: Fri, 18 May 2018 20:56:49 -0400 Subject: autostart tweaks --- .../profile/root-image/root/customize_root_image.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'configs/profile/root-image/root/customize_root_image.sh') diff --git a/configs/profile/root-image/root/customize_root_image.sh b/configs/profile/root-image/root/customize_root_image.sh index 518436c..2a2886c 100755 --- a/configs/profile/root-image/root/customize_root_image.sh +++ b/configs/profile/root-image/root/customize_root_image.sh @@ -66,22 +66,23 @@ else # configure GUI login session and live user else echo "invalid \$iso_init for --autologin '${iso_init}'" fi + # configure welcome news alert + sed -i "s|_EDITION_TITLE_|${PRETTY_NAME}|" /usr/bin/autostart.sh + sed -i "s|,Don't show this again:0||" /usr/bin/autostart.sh + sed -i "s|620x460|620x520|" /usr/bin/autostart.sh + # configure desktop environment - sed -i "s|/news-*|/news-* ~/welcome.txt|" /home/${LIVE_USER}/.config/autostart/autostart.sh - sed -i "s|_EDITION_TITLE_|${PRETTY_NAME}|" /home/${LIVE_USER}/.config/autostart/autostart.sh - sed -i "s|,Don't show this again:0||" /home/${LIVE_USER}/.config/autostart/autostart.sh - sed -i "s|620x460|620x520|" /home/${LIVE_USER}/.config/autostart/autostart.sh - sed -i "s|/issue-tracker/|/isos/|" /home/${LIVE_USER}/Desktop/bug-tracker.desktop + sed -i "s|/issue-tracker/|/isos/|" /home/${LIVE_USER}/Desktop/bug-tracker.desktop if [[ "${iso_gui}" == 'lxde' ]] then rm -f /etc/xdg/autostart/octopi-notifier.desktop 2> /dev/null touch /home/${LIVE_USER}/Desktop/parabola-installer.desktop ; sleep 2 ; # sort touch /home/${LIVE_USER}/Desktop/parabola-irc.desktop ; sleep 2 ; # sort touch /home/${LIVE_USER}/Desktop/bug-tracker.desktop # sort - sed -i "s|_DESKTOP_SESSION_|LXDE|" /home/${LIVE_USER}/.bash_profile - sed -i "s|_DESKTOP_SESSION_|LXDE|" /home/${LIVE_USER}/.dmrc + sed -i "s|_DESKTOP_SESSION_|LXDE|" /home/${LIVE_USER}/.bash_profile + sed -i "s|_DESKTOP_SESSION_|LXDE|" /home/${LIVE_USER}/.dmrc elif [[ "${iso_gui}" == 'mate' ]] - then sed -i "s|_DESKTOP_SESSION_|mate|" /home/${LIVE_USER}/.bash_profile - sed -i "s|_DESKTOP_SESSION_|mate|" /home/${LIVE_USER}/.dmrc + then sed -i "s|_DESKTOP_SESSION_|mate|" /home/${LIVE_USER}/.bash_profile + sed -i "s|_DESKTOP_SESSION_|mate|" /home/${LIVE_USER}/.dmrc else echo "invalid \$iso_gui for _DESKTOP_SESSION_ '${iso_gui}'" exit 1 fi -- cgit v1.2.2