tazpanel rev 432

libtazpanel: fix keymap list
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 06 17:22:23 2015 +0200 (2015-04-06)
parents b14da4e2d0a6
children 73305834575f
files lib/libtazpanel
line diff
     1.1 --- a/lib/libtazpanel	Mon Apr 06 17:38:32 2015 +0200
     1.2 +++ b/lib/libtazpanel	Mon Apr 06 17:22:23 2015 +0200
     1.3 @@ -205,9 +205,9 @@
     1.4  # Get the list of console keymaps
     1.5  
     1.6  list_keymaps() {
     1.7 -	for keymap in /usr/share/kmap/*.kmap; do
     1.8 -		basename $keymap .kmap | sed "s|.*|<option value='&'>&</option>|"
     1.9 -	done
    1.10 +	for keymap in $(find /usr/share/k* -type f -name "*.*map*"); do
    1.11 +		basename $keymap
    1.12 +	done | sed "s|\..*||;s|.*|<option value='&'>&</option>|" | sort
    1.13  }
    1.14  
    1.15