Bug 1049306 - localectl set-x11-keymap wrong arguments handling
Summary: localectl set-x11-keymap wrong arguments handling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-07 11:44 UTC by Karel Volný
Modified: 2014-11-05 03:56 UTC (History)
8 users (show)

Fixed In Version: systemd-208-26.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-02 07:26:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karel Volný 2014-01-07 11:44:53 UTC
Description of problem:
From localectl man page:

...
set-x11-keymap LAYOUT [MODEL] [VARIANT] [OPTIONS]
...

According to common syntax, this means that the LAYOUT argument is mandatory, then any of MODEL, VARIANT, OPTIONS could follow.

But that's not true for localectl, it acts like:

set-x11-keymap LAYOUT [MODEL [VARIANT [OPTIONS]]]

i.e. if you want to specify MODEL, you have to specify LAYOUT
if you want to specify VARIANT, you have to specify LAYOUT and MODEL
if you want to specify OPTIONS, you have to specify all of LAYOUT, MODEL and VARIANT

In addition, if you don't follow the rules, it puts the settings in fields they do not belong in without any check against the possible values (that can be listed via list-x11-keymap-models, list-x11-keymap-layouts, list-x11-keymap-variants and list-x11-keymap-options)

Version-Release number of selected component (if applicable):
systemd-208-9.fc20.x86_64

How reproducible:
always

Steps to Reproduce:
1. localectl set-x11-keymap cz qwerty terminate:ctrl_alt_bksp
2. localectl status
3. localectl list-x11-keymap-models | grep `localectl status | grep Model | awk '{print $3}'` ; echo $?
4. localectl list-x11-keymap-variants | grep `localectl status | grep Variant | awk '{print $3}'` ; echo $?

Actual results:
2.
   System Locale: LANG=cs_CZ.UTF-8
       VC Keymap: cz-lat2
      X11 Layout: cz
       X11 Model: qwerty
     X11 Variant: terminate:ctrl_alt_bksp

3.
1

4.
1


Expected results:
2.
   System Locale: LANG=cs_CZ.UTF-8
       VC Keymap: cz-qwerty
      X11 Layout: cz
       X11 Model: evdev
     X11 Variant: qwerty
     X11 Options: terminate:ctrl_alt_bksp

3.
evdev
0

4.
101_qwerty_comma_dead
101_qwerty_comma_nodead
101_qwerty_dot_dead
101_qwerty_dot_nodead
102_qwerty_comma_dead
102_qwerty_comma_nodead
102_qwerty_dot_dead
102_qwerty_dot_nodead
qwerty
qwerty-bay
qwerty_bksl
qwerty_digits
0


Additional info:
As for 'evdev' model, for some reason it is not in the actual list, but this is what setxkbmap reports ... bug #1049304

Comment 1 Fedora Update System 2014-10-26 23:10:31 UTC
systemd-208-25.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/systemd-208-25.fc20

Comment 2 Fedora Update System 2014-10-30 12:00:04 UTC
systemd-208-26.fc20,kmod-15-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/systemd-208-26.fc20,kmod-15-2.fc20

Comment 3 Fedora Update System 2014-11-01 01:40:52 UTC
Package systemd-208-26.fc20, kmod-15-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-208-26.fc20 kmod-15-2.fc20'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-14032/systemd-208-26.fc20,kmod-15-2.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-11-02 07:26:55 UTC
systemd-208-25.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2014-11-05 03:56:40 UTC
systemd-208-26.fc20, kmod-15-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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