瀏覽代碼

Set initial keyboard map for mesh client

Bob Mottram 8 年之前
父節點
當前提交
4d9d047e3c
沒有帳戶連結到提交者的電子郵件
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      src/freedombone-image-customise

+ 4
- 0
src/freedombone-image-customise 查看文件

@@ -106,6 +106,9 @@ MESH_INSTALL_DIR=/var/lib
106 106
 # a new identity at every shutdown/boot
107 107
 AMNESIC='no'
108 108
 
109
+# defines the initial keyboard layout
110
+KEYBOARD_MAP='gb'
111
+
109 112
 enable_eatmydata_override() {
110 113
     chroot $rootdir apt-get install --no-install-recommends -y eatmydata
111 114
     if [ -x $rootdir/usr/bin/eatmydata ] && \
@@ -579,6 +582,7 @@ function mesh_client_startup_applications {
579 582
     START_DESKTOP=$rootdir/home/$MY_USERNAME/mesh-desktop.sh
580 583
 	FIRST_BOOT=/home/$MY_USERNAME/.first_boot
581 584
     echo '#!/bin/bash' > $START_DESKTOP
585
+    echo "setxkbmap ${KEYBOARD_MAP}" > $START_DESKTOP
582 586
     echo 'dconf write /org/mate/caja/desktop/volumes-visible false' >> $START_DESKTOP
583 587
     echo 'dconf write /org/mate/caja/desktop/computer-icon-visible false' >> $START_DESKTOP
584 588
     echo 'dconf write /org/mate/caja/desktop/home-icon-visible false' >> $START_DESKTOP