https://bugs.kde.org/show_bug.cgi?id=503891

            Bug ID: 503891
           Summary: Layouts from ~/.config/xkb are not listed in settings
    Classification: Applications
           Product: systemsettings
           Version: 6.3.4
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_keyboard
          Assignee: plasma-b...@kde.org
          Reporter: vse.stopchans...@gmail.com
                CC: butir...@gmail.com, duha.b...@gmail.com,
                    natalie_clar...@yahoo.de
  Target Milestone: ---

SUMMARY
I have two files in /home/damglador/.config/xkb/symbols/: ua + us. 
They define the following layouts:
default partial alphanumeric_keys
xkb_symbols "custom" {
    include "us(basic)"
    name[Group1]= "English (Custom)";
    key <AE01>  {[               1,          exclam,    onesuperior            
         ]};
    key <AE02>  {[               2,              at,    twosuperior,           
   U2019 ]};
    include "level3(ralt_switch)"

};
default partial alphanumeric_keys
xkb_symbols "custom" {
    include "ua(unicode)"
    name[Group1]= "Ukrainian (Custom)";
    key <AE01>  {[               1,          exclam,    onesuperior            
         ]};
    key <AE02>  {[               2,        quotedbl,    twosuperior,           
   U2019 ]};

};
I can set these layouts by editing ~/.config/kxkbrc and adding
VariantList=custom,custom, and the layouts work like they should. Despite that,
they don't show up in the list of keyboard layouts in settings, and they also
can't be previewed in settings, even though tecla from GNOME can do that.

STEPS TO REPRODUCE
1. Add a xkb symbols file as ~/.config/xkb/symbols/us with the config from
above inside of it
2. Log out and back in
3. Check keyboard layout list in settings
4. Exit ~/.config/kxkbrc so for us VariantList is set to custom
5. Log out and back in
6. Test the layout
7. Try to preview the layout in settings

OBSERVED RESULT
Instead of showing a preview of layout, it shows an error.
It doesn't list the custom layout amongst all other layouts 

EXPECTED RESULT
Preview should work and keyboard layouts from ~/.config/xkb should be listed
amongst default layouts

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.5-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 13.5 GiB of RAM
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to