codekasten/knoppix-remastering/local.conf.d/chroot_scripts.d/select_windom_manager.sh

13 lines
476 B
Bash
Executable file

# put your favourite window manager here
STARTUP_WM=kde
# this one does not work - S00knoppix-autoconfig will always overwrite it
# echo "$STARTUP_WM" >/etc/sysconfig/desktop
# this one does work - uuuugly!
FILE=/etc/rcS.d/S00knoppix-autoconfig
if grep -q '^\[ -n "$DESKTOP" \] || DESKTOP=' "$FILE"
then sed -i "/^\[ -n \"\$DESKTOP\" \] || DESKTOP=/s/DESKTOP=\".*$/DESKTOP=\"$STARTUP_WM\"/g" "$FILE"
else echo " setting of default window manager not found in $FILE"
fi