Bug 1192007 - Can not set default keyboard layout
Summary: Can not set default keyboard layout
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: control-center
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Control Center Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-12 11:37 UTC by Pavel Lisý
Modified: 2015-04-08 11:47 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-08 11:47:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Gnome 3.14 keyboard layout (no default setting possibility) (15.05 KB, image/png)
2015-02-12 11:37 UTC, Pavel Lisý
no flags Details
Gnome 3.14 keyboard per window switch (21.29 KB, image/png)
2015-02-12 11:38 UTC, Pavel Lisý
no flags Details
Xfce keyboard layout (default setting possibility) (40.22 KB, image/png)
2015-02-12 11:39 UTC, Pavel Lisý
no flags Details
Cinnamon keyboard layout (default setting possibility with per window variant) (34.72 KB, image/png)
2015-02-12 11:40 UTC, Pavel Lisý
no flags Details

Description Pavel Lisý 2015-02-12 11:37:56 UTC
Created attachment 990886 [details]
Gnome 3.14 keyboard layout (no default setting possibility)

Description of problem:
There is no way how to set default keyboard layout in control-center
This possibility disappeared 2-4 minor version ago (3.6 - 3.8). 

Version-Release number of selected component (if applicable):
control-center-3.14.2-2.fc21.x86_64

(for F20: control-center-3.12.1-1.fc20.x86_64)

How reproducible:
Always

Steps to Reproduce:
1. add second keyboard layout (czech)
2. set "Allow different sources for each window" 
3. start new windows
4. keyboard layout of new window depend on last layout state

Actual results:
keyboard layout of new window depend on last layout state

Expected results:
keyboard layout of new window will use default layout

Additional info:
I can add second layout (czech) but I can't choose which one is default.
Just now it remembers last layout even after reboot. 

It is very annoying specially in case when I use switch
"Allow different sources for each window" 
with 
Focus mode: Sloppy

Than every new window is started with layout of actual active window 
(which depends on mouse position)

I work mostly in gnome-terminal and there I need US layout almost every time.

Comment 1 Pavel Lisý 2015-02-12 11:38:54 UTC
Created attachment 990887 [details]
Gnome 3.14 keyboard per window switch

Comment 2 Pavel Lisý 2015-02-12 11:39:38 UTC
Created attachment 990888 [details]
Xfce keyboard layout (default setting possibility)

Comment 3 Pavel Lisý 2015-02-12 11:40:59 UTC
Created attachment 990890 [details]
Cinnamon keyboard layout (default setting possibility with per window variant)

Comment 4 olegon.ru 2015-03-02 18:03:20 UTC
Very annoying... In addition to this, random layout (depends on active window layout) also in lock screen...

Comment 5 Bastien Nocera 2015-03-04 08:17:20 UTC
This was fixed upstream, and will be in GNOME 3.16 (and 3.15.91 released yesterday). See:
https://bugzilla.gnome.org/show_bug.cgi?id=743400

Comment 6 Pavel Lisý 2015-03-10 14:35:39 UTC
This is not solution for this bug

I've just tried it in F22 Alpha (updated to 3.15.91)

New buttons change order in: 
/org/gnome/desktop/input-sources/sources "[('xkb', 'us'), ('xkb', 'cz')]"

when I have "per-window" true new window still have layout of last active window not default
layout.


In cinnamon you can do it correctly this way:

Set default keyboard layout for new window:
dconf write /org/gnome/libgnomekbd/desktop/group-per-window true
dconf write /org/gnome/libgnomekbd/desktop/default-group 0

Set actual keyboard layout for new window:
dconf write /org/gnome/libgnomekbd/desktop/group-per-window true
dconf write /org/gnome/libgnomekbd/desktop/default-group -1


In gnome 3.16 there is no possibility to set "group-per-window"
/org/gnome/desktop/input-sources/group-per-window 

There is only:
/org/gnome/desktop/input-sources/current

Can you improve it, please?

Comment 7 Rui Matos 2015-03-11 14:54:05 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=746037

Comment 8 Pavel Lisý 2015-04-08 11:03:18 UTC
Hi Rui

thanks for your fix. Actual state in F22 "default is the same for every new window".
It is good enough for me. And for layout-per-window one/common default layout for new window is probably better way.


But from multi-layout environment view (ex. Czech Republic) it could be better work with layout-per-windowgroup and change (runtime) default per windowgroup like Cinnamon do.
Can you look to my attachment?
"Cinnamon keyboard layout (default setting possibility with per window variant)"

There is dconf settings (which could be first step) and possibility to switch it in gui.

Do you think it is possible to improve it this way?
I think it will require deeper change but it is worthy for users:

Use case:
I work in IT, mostly in terminal/vim - I want have US layout in every terminal. When I write email I often need write in czech 
so I can switch to czech layout. It is OK. New email window should be in czech. But next terminal window I want in US layout
again.

Terminal: US (admin and coding work in english)
Gvim/vim: US (admin and coding work in english)
LibreOffice: czech layout (mostly I need write czech texts)
Evolution: czech layout (dtto)
Firefox: czech layout (I search/comment in czech)

What do you think? Is it nonsense?

Is it possible to do it or absolutely not?

Comment 9 Rui Matos 2015-04-08 11:47:59 UTC
Downstream bug reports to request upstream features don't work very well. If you have suggestions to improve things please file a bug against gnome-shell in gnome's bugzilla.


Note You need to log in before you can comment on or make changes to this bug.