Wednesday, May 28, 2014

Can't switch keyboard in google-chrome or chromium from version 35+ --> Fixed in /etc/locale.conf

Keyboard layout switcher doesn't work if browser is started in en_US locale!
Because of that you need to start google-chrome or chromium with whatever non-English locale you use for example LANG=sl_SI.UTF-8 for Slovenian locale.

Running google-chrome like this fixes the problem.

`LANG=sl_SI.UTF-8 /usr/bin/google-chrome-stable`

You can create KDE Desktop shortcut Chrome.desktop

[Desktop Entry]
Comment[en_US]=
Comment=
Exec=LANG=sl_SI.UTF-8 /usr/bin/google-chrome-stable
GenericName[en_US]=
GenericName=
Icon=google-chrome
MimeType=
Name[en_US]=Google-Chrome
Name=Google-Chrome
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Update 31.08.2014
A general system wide fix for all users is to update locale.conf with more advanced options:

Create or edit /etc/locale.conf with these options:

# Enable UTF-8 with US settings.
LANG="en_US.UTF-8"

# Keep the default sort order (e.g. files starting with a '.'
# should appear at the start of a directory listing.)
LC_COLLATE="C"

# Set the short date to YYYY-MM-DD (test with "date +%c")
LC_TIME="sl_SI.UTF-8"