summaryrefslogtreecommitdiff
path: root/configs/profile/root-image
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-05-18 20:56:49 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-03-27 19:32:36 -0400
commit922e6e463b81cc2627c8c502b2ca77d25ee5391e (patch)
tree09c6309644ed2f2760991180d441558f3311ca75 /configs/profile/root-image
parenta1863b47f0925b95111a9a3b6d2c26b96c582b86 (diff)
autostart tweaks
Diffstat (limited to 'configs/profile/root-image')
-rw-r--r--configs/profile/root-image/etc/skel/.bash_profile2
-rwxr-xr-xconfigs/profile/root-image/root/customize_root_image.sh19
2 files changed, 11 insertions, 10 deletions
diff --git a/configs/profile/root-image/etc/skel/.bash_profile b/configs/profile/root-image/etc/skel/.bash_profile
index 502a30a..4dfbab5 100644
--- a/configs/profile/root-image/etc/skel/.bash_profile
+++ b/configs/profile/root-image/etc/skel/.bash_profile
@@ -18,4 +18,4 @@ export $(cat /etc/locale.conf)
# launch X
-[ -n "$DESKTOP_SESSION" -a -z "$DISPLAY" -a "$(tty)" = /dev/tty1 ] && exec startx
+[ -n "$DESKTOP_SESSION" -a -z "$DISPLAY" -a "$(tty)" = /dev/tty1 ] && exec startx || cat /etc/motd
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