wok diff xvkbd/receipt @ rev 9156

Up haserl (0.9.27)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 07 15:24:51 2011 +0100 (2011-03-07)
parents 1c83aa8ebdfb
children cae2be2e4809
line diff
     1.1 --- a/xvkbd/receipt	Sun May 16 16:52:07 2010 +0000
     1.2 +++ b/xvkbd/receipt	Mon Mar 07 15:24:51 2011 +0100
     1.3 @@ -40,10 +40,18 @@
     1.4  post_install()
     1.5  { 
     1.6  	# .Xdefaults file
     1.7 -	cat >> /home/tux/.Xdefaults << EOT
     1.8 +	lang=$(echo $LANG | awk '{FS="_"} {print $1}')
     1.9 +	find /home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
    1.10 +	while read line
    1.11 +	do
    1.12 +	if ! grep -q "Xvkbd settings" $line; then
    1.13 +	cat >> $line << EOT
    1.14  
    1.15  ! Xvkbd settings
    1.16  !
    1.17  xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
    1.18  EOT
    1.19 +echo "xvkbd.Layout : $lang" >> $line	
    1.20 +	fi
    1.21 +	done </tmp/listeXdefaults
    1.22  }