After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659300 - region: Add a helper to set system layouts
region: Add a helper to set system layouts
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Region & Language
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
: 660187 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-09-17 06:00 UTC by Matthias Clasen
Modified: 2011-10-03 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
region: Add a helper to set system layouts (12.02 KB, patch)
2011-09-17 06:01 UTC, Matthias Clasen
rejected Details | Review
region: Implement copying layouts (7.25 KB, patch)
2011-09-29 15:53 UTC, Bastien Nocera
none Details | Review
region: Implement copying layouts (7.89 KB, patch)
2011-09-29 16:42 UTC, Bastien Nocera
committed Details | Review

Description Matthias Clasen 2011-09-17 06:00:39 UTC
Use a pkexec helper to write an xorg.conf fragment that
sets keyboard layouts. This is just a temporary hack until
keyboard layouts are supported in localed. It does not work
perfectly, since we get two separate policykit dialogs when
both keyboard layouts and LC_ variables are changed.
Comment 1 Matthias Clasen 2011-09-17 06:01:20 UTC
Created attachment 196789 [details] [review]
region: Add a helper to set system layouts
Comment 2 Bastien Nocera 2011-09-21 18:48:16 UTC
Given that we missed out on GNOME 3.2 with that patch, we should probably hide the button to do that in the control-center in the meanwhile, right?
Comment 3 Bastien Nocera 2011-09-28 15:24:52 UTC
Should be implemented using this:
http://www.freedesktop.org/wiki/Software/systemd/localed
Comment 4 Bastien Nocera 2011-09-29 15:53:25 UTC
Created attachment 197776 [details] [review]
region: Implement copying layouts

Using systemd's SetX11Keyboard() method in localed. Disable
the functionality altogether if systemd is not found.
Comment 5 Bastien Nocera 2011-09-29 16:42:17 UTC
Created attachment 197783 [details] [review]
region: Implement copying layouts

Using systemd's SetX11Keyboard() method in localed. Disable
the functionality altogether if systemd is not found.

This version supports multiple keyboard layouts by passing comma
separated layouts, as supported by X11.
Comment 6 Bastien Nocera 2011-09-29 16:48:27 UTC
Will commit when systemd handles the multiple X11 layouts to vconsole conversion:
https://bugs.freedesktop.org/show_bug.cgi?id=41341
Comment 7 Bastien Nocera 2011-10-03 11:30:49 UTC
Attachment 197783 [details] pushed as 6a9881d - region: Implement copying layouts
Comment 8 Bastien Nocera 2011-10-03 11:50:30 UTC
Pushed to master and gnome-3-2 after testing.
Comment 9 Bastien Nocera 2011-10-03 13:21:13 UTC
*** Bug 660187 has been marked as a duplicate of this bug. ***