[SCM] live-config branch, debian-next, updated. debian/2.0_a14-1-13-g08e5b21

Daniel Baumann daniel at debian.org
Fri Jul 16 20:26:21 UTC 2010


The following commit has been merged in the debian-next branch:
commit 08e5b219bbf3fbe988541e8e0c1fe597dd0d5840
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Jul 16 22:25:20 2010 +0200

    Preconfiguring kxkb to show kde keyboard selector when using multiple layouts.

diff --git a/scripts/config/106-kde-services b/scripts/config/106-kde-services
index 2b777b5..61696e5 100755
--- a/scripts/config/106-kde-services
+++ b/scripts/config/106-kde-services
@@ -25,6 +25,27 @@ Kde_services ()
 
 Configure_kde_services ()
 {
+	# Enabling keyboard selector
+	if echo "${LIVE_KEYBOARD_LAYOUTS}" | grep -qs ','
+	then
+		if [ ! -e "/home/${LIVE_USERNAME}/.kde/share/config/kxkbrc" ]
+		then
+			mkdir -p "/home/${LIVE_USERNAME}/.kde/share/config/"
+
+cat > "/home/${LIVE_USERNAME}/.kde/share/config/kxkbrc" << EOF
+[Layout]
+DisplayNames=${LIVE_KEYBOARD_LAYOUTS}
+IndicatorOnly=false
+LayoutList=${LIVE_KEYBOARD_LAYOUTS}
+ShowFlag=false
+ShowSingle=false
+SwitchMode=Global
+Use=true
+EOF
+
+		fi
+	fi
+
 	# Disabling unnecessary KDE services
 	rm -f /usr/share/autostart/kab2kabc.desktop
 	rm -f /usr/share/autostart/kabcdistlistupdater.desktop

-- 
live-config



More information about the debian-live-changes mailing list