summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-10-20 18:05:44 +0200
committer Eric Hameleers <alien@slackware.com>2020-10-20 18:05:44 +0200
commit40f21df49785a2e4aec68b8bff1495628e7360b7 (patch)
treed7ecedbf4cf6b20b1d04ab22b6bd94882bc04099
parent028ffa7494305bc3892d702e01063e2f749cbe75 (diff)
downloadliveslak-40f21df49785a2e4aec68b8bff1495628e7360b7.tar.gz
liveslak-40f21df49785a2e4aec68b8bff1495628e7360b7.tar.xz
Make the face icon customizable
-rwxr-xr-xmake_slackware_live.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 03516fa..7d55138 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1904,11 +1904,18 @@ echo "-- Configuring the X base system."
sed -i -e '/^c3\|^c4\|^c5\|^c6/s/^/# /' ${LIVE_ROOTDIR}/etc/inittab
# Give the 'live' user a face:
-cp ${LIVE_TOOLDIR}/blueSW-64px.png ${LIVE_ROOTDIR}/home/${LIVEUID}/.face.icon
+if [ -f "${LIVE_TOOLDIR}/media/${LIVEDE,,}/icons/default.png" ]; then
+ # Use custom face icon if available for the Live variant:
+ FACE_ICON="${LIVE_TOOLDIR}/media/${LIVEDE,,}/icons/default.png"
+else
+ # Use the default Slackware blue 'S':
+ FACE_ICON="${LIVE_TOOLDIR}/blueSW-64px.png"
+fi
+convert ${FACE_ICON} -resize 64x64 - >${LIVE_ROOTDIR}/home/${LIVEUID}/.face.icon
chown --reference=${LIVE_ROOTDIR}/home/${LIVEUID} ${LIVE_ROOTDIR}/home/${LIVEUID}/.face.icon
( cd ${LIVE_ROOTDIR}/home/${LIVEUID}/ ; ln .face.icon .face )
mkdir -p ${LIVE_ROOTDIR}/usr/share/apps/kdm/pics/users
-cp ${LIVE_TOOLDIR}/blueSW-64px.png ${LIVE_ROOTDIR}/usr/share/apps/kdm/pics/users/blues.icon
+convert ${FACE_ICON} -resize 64x64 - >${LIVE_ROOTDIR}/usr/share/apps/kdm/pics/users/blues.icon
# Give XDM a nicer look:
mkdir -p ${LIVE_ROOTDIR}/etc/X11/xdm/liveslak-xdm