OSDN Git Service

[update] : disable fcitx env if not jp
authorhayao <shun819.mail@gmail.com>
Mon, 17 Aug 2020 03:33:56 +0000 (12:33 +0900)
committerhayao <shun819.mail@gmail.com>
Mon, 17 Aug 2020 03:33:56 +0000 (12:33 +0900)
channels/gnome/airootfs.any/root/customize_airootfs_gnome.sh

index 2943bc9..49eb757 100755 (executable)
@@ -123,3 +123,11 @@ chmod 755 /usr/bin/alterlinux-gtk-bookmarks
 
 # Replace auto login user
 sed -i s/%USERNAME%/${username}/g /etc/gdm/custom.conf
+
+
+# Remove file for japanese input
+if [[ ! "${language}" = "ja" ]]; then
+    sed -i "s/export GTK_IM_MODULE=fcitx/#export GTK_IM_MODULE=fcitx/g"
+    sed -i "s/export QT_IM_MODULE=fcitx/#export QT_IM_MODULE=fcitx/g" "/etc/environment"
+    sed -i "s/export XMODIFIERS=@im=fcitx/#export XMODIFIERS=@im=fcitx/g" "/etc/environment"
+fi
\ No newline at end of file