BluesKaj | Hi all | 12:06 |
---|---|---|
IrcsomeBot | <RikMills> https://www.reddit.com/r/Kubuntu/comments/1h3wa0m/anyone_using_kubuntu_focus/ | 15:14 |
arraybolt3 | so, I have some extra free time today, poking my head in to see if there's anything in Kubuntu-land I can be helping with. I remember RikMills was talking about keyboard layout support on the OEM installation screen | 15:45 |
arraybolt3 | er, not OEM installatino, but the installer prompt | 15:45 |
RikMills | arraybolt3: yeah, I haven't looked at that yet. if you could spare some time that would be good | 15:46 |
arraybolt3 | kk, I'll take a swing at it. I remember setxkbmap didn't do the trick, but I bet there's some way to modify whatever config file KDE is using for its keyboard layout settings. | 15:46 |
arraybolt3 | (btw, does anyone know how to get rid of the small black bars at the top and bottom of my VM screen when using KDE Wayland?) | 15:47 |
arraybolt3 | mmm, 840 upgrades might do it | 15:48 |
arraybolt3 | been a while since I turned this VM on | 15:48 |
RikMills | never noticed that on wayland | 15:48 |
arraybolt3 | happening to me with virt-manager, I think it happened with QEMU too though I'm not certain. | 15:49 |
RikMills | for the keyboard IIRC, when you change/add layout in systemsettings it modifies ~/.config/kxkbrc | 15:50 |
RikMills | I think..... | 15:50 |
arraybolt3 | Um, ok, problem. | 16:23 |
arraybolt3 | * Log in with Plasma Wayland | 16:24 |
arraybolt3 | * Add German as a keyboard layout | 16:24 |
arraybolt3 | * Click the keyboard layout button to switch from US to German | 16:24 |
arraybolt3 | * Log out | 16:24 |
arraybolt3 | * Log back in | 16:24 |
arraybolt3 | * All keyboard settings are lost, you're back to just a US keyboard layout | 16:24 |
arraybolt3 | this is with an Oracular VM that I upgraded to Plucky so maybe I'm just missing some bits | 16:25 |
arraybolt3 | (so I guess previously Oracular) | 16:25 |
arraybolt3 | Did experiments with Fedora, apparently it manages to preserve the keyboard layouts chosen and the order they appear in, but can't remember the last chosen keyboard layout either by accident or by design. | 16:49 |
arraybolt3 | Whereas Kubuntu Plucky can't even remember the chosen keyboard layouts. | 16:50 |
RikMills | arraybolt3: is that still in the same vm? | 16:51 |
RikMills | the one upgraded from oracular? | 16:51 |
arraybolt3 | yes | 16:52 |
arraybolt3 | (just did a test, it's resetting the keyboard layout list in kxkbrc on login.) | 16:52 |
arraybolt3 | so I'm going to install from a Plucky ISO to see if it acts the same way. | 16:53 |
RikMills | ok | 16:53 |
arraybolt3 | alright, it was my VM's fault. Fresh Plucky install works perfect. | 17:03 |
* arraybolt3 nukes the bad VM | 17:03 | |
arraybolt3 | black bars problem persists but meh, not the end of the world | 17:06 |
RikMills | arraybolt3: great. so if we can set somehow via installer-prompt it should be good | 17:11 |
arraybolt3 | yep, that's the goal | 17:11 |
arraybolt3 | the installer prompt probably needs to set the keyboard layout for itself too, but I think that should be trivial. | 17:12 |
arraybolt3 | What might not be trivial is porting it to Wayland... | 17:12 |
arraybolt3 | but meh, maybe it won't be that hard. | 17:12 |
arraybolt3 | almost got it Wayland-ified, only trick is avoiding a race condition between kwin_wayland and kubuntu-installer-prompt... | 17:51 |
arraybolt3 | got it! | 17:53 |
arraybolt3 | ugh, why does languages and keyboard layouts under Linux have to be such a disaster | 18:22 |
arraybolt3 | someone really needs to make the fifteenth competing standard here | 18:23 |
arraybolt3 | so basically to translate a language to a keyboard layout, Calamares has this very advanced, powerful, and complicated mess of language-to-layout correlation code with special case handling. I have to re-implement that in Bash for this to work. | 18:29 |
arraybolt3 | On the bright side, kwin_wayland all by itself respects the contents of .config/kxkbrc, so that's all that will be necessary to make the keyboard layout work right. | 18:31 |
RikMills | arraybolt3: how did the ubiquity try/install screen acheieve it? | 18:34 |
RikMills | in case something is reusable from that | 18:35 |
RikMills | I doubt it, but..... | 18:35 |
arraybolt3 | The nice thing with Ubiquity is it was both installer and desktop environment all in one. We don't really get that advantage here. | 18:39 |
arraybolt3 | I think Cala has most of the bits I need though. | 18:40 |
arraybolt3 | But the code in its current state is dumpster fire. There's multiple layers of special casing in fragmented spots, and just kludging in keyboard layout handling is not in our best interest. I think I'm going to rip all this out and rewrite it in a more bearable way (if there is such a thing). | 18:40 |
arraybolt3 | alright, it finally works. Grief, that was hard. | 23:24 |
arraybolt3 | hmm, no kubuntu-automation available for Plucky yet? | 23:41 |
arraybolt3 | I can live without it I guess. | 23:41 |
arraybolt3 | *barely, I've had to force-push twice to fix goof-ups made trying to get everything exactly right | 23:47 |
arraybolt3 | alright, finally there. I still made a tiny goof with a debian/files sneaking in and then getting almost immediately removed, but that was it and I didn't feel like risking a third force-push to fix that. | 23:51 |
* arraybolt3 is slightly rusty on how to do this, hopefully my next upload won't be quite so chaotic | 23:51 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!