/srv/irclogs.ubuntu.com/2016/04/25/#ubuntu-unity.txt

=== pete-woods1 is now known as pete-woods
mterrytsdgeos, I made a thing you'll like: https://code.launchpad.net/~mterry/unity8/test-greeter-dbus-fixes/+merge/29267708:05
tsdgeos:)08:06
tsdgeosmterry: why the > 0? is this something that would get fixed in future branches?08:09
mterrytsdgeos, that's because there are two PropertiesChanged signals sent out -- for two separate properties.  And the previous code was racy if both came in before spy.wait() finished08:10
mterrytsdgeos, so I think >0 is fine as is, even in future08:10
tsdgeosmterry: if there's two of them, should be > 1 ?08:10
mterrytsdgeos, we only care about the first one -- we know the order they come in, and the test is only interested in the first08:11
tsdgeosok08:11
mterrytsdgeos, good points though -- that check does *look* flaky  :)08:11
tsdgeosmterry: so shall i approve it or you'll have another look?08:13
mterrytsdgeos, no I was just saying they were good questions.  I'm +1 for code as is.  I think there are comments already in that function that explain what's going on08:13
tsdgeosok :)08:13
MirvI give silo 19 "Timo's seal of approval" on my frieza that Bq shipped to me on Friday09:27
Saviq+109:28
=== vrruiz_ is now known as rvr
cimitsdgeos hey albert, any reason why we didnt add qml tests for the expandable filter? https://code.launchpad.net/~aacid/unity8/expandable_filter/+merge/28895710:02
tsdgeoscimi: hmmm10:30
tsdgeoscimi: i guess i forgot :D10:31
tsdgeoscimi: can you comment asking for it in the MR?10:31
cimitsdgeos I asked a need information10:32
tsdgeosoki10:32
davmor2Saviq: I wouldn't pay too much attention to that though we fail Mirv silos all the time ;)10:44
Mirvhaha10:57
=== alan_g is now known as alan_g|lunch
tsdgeoscimi: added the test12:27
=== alan_g|lunch is now known as alan_g
dandradertsdgeos, no apps scope when I run unity8-dash in my laptop. any idea why?13:34
tsdgeosdandrader: not installed?13:34
tsdgeosunity-scope-click13:34
dandradertsdgeos, right. installing now. do you know which package brings this one in?13:35
dandradertsdgeos, wow, unity8-dash loads it on the fly13:35
tsdgeosdandrader: ubuntu-touch is the dependency that brings it in13:35
=== dandrader is now known as dandrader|afk
=== willcooke is now known as wllck
=== dandrader|afk is now known as dandrader
ChrisTownsendHey all!  If I pair a keyboard with say an N4 or Frieza, how does it figure out what keyboard is being used.  I know if you explicitly set the hardware keyboard in System Settings->Language & Text->External Keyboad->Layouts and other sources", then it is saved in org.freedesktop.Accounts.User$UID.InputSources property.  But if I just pair it and not set it in there, that property is blank.14:33
ChrisTownsendDoes U8 assume it's a US(?) keyboard and the user has to go in there to set it to their particular keyboard layout?  Or is there some sort of probing to figure out the keyboard layout when pairing?14:36
ChrisTownsendSaviq: Any ideas? ^^^^14:44
SaviqChrisTownsend, no probing possible14:52
SaviqChrisTownsend, we'll default to the default one for the language14:52
Saviqor have it in OOBE for desktops14:52
ChrisTownsendSaviq: Ok.  Background is that I need to set the same keyboard for X apps, so the best approach would be if InputSources is blank, then use the language that is set.  But if InputSources is set, then use the first one that is set.14:53
Saviqltinkl, comment ↑?14:54
ChrisTownsendSaviq: In The Future, I will plan on dynamic keyboard selection for X apps, but this will have to due for now.14:54
SaviqChrisTownsend, define dynamic? you mean applied on the fly?14:55
ChrisTownsendSaviq: Yes, on the fly.  Like if someone changes the keyboard layout in System Settings, that can also be applied to any running X apps.  But that is much more complicated, so that will be done the line.14:56
ChrisTownsendSaviq: So I would need some sort of something to catch the change property signal and see if it changed...or somethin'.14:56
ChrisTownsendSaviq: But right now, X apps are US keyboard only and that is bad.14:56
ChrisTownsendSaviq: So if I can at least set the current layout when an X app launches, that will satisfy most use cases.14:57
* ltinkl reads the backlog15:04
ltinklChrisTownsend, so what's known is the user's preferred keymap but you can't currently ask U8 which is the current one15:07
ltinklChrisTownsend, so that's something I could expose to you to fix this15:07
ltinklif the user hasn't configured any keymaps, I don't think we should get too smart and try to guess from the language (which is also technically wrong, some keymaps don't match the language code)15:09
ChrisTownsendltinkl: Well, that would certainly be a good thing.  It looks like System Settings queries org.freedesktop.Accounts.User$UID.InputSources property for the selected maps.15:09
ltinklChrisTownsend, yes, we do the same in u8 (that's our common "storage")15:09
ltinklChrisTownsend, but the current keymap is only known to u8 atm15:10
ChrisTownsendltinkl: Ok, then it's easy enough for me to query that too.  But my question is, if I just pair a keyboard, that property is blank, so how is the keymap determined in that case.15:10
ChrisTownsendltinkl: Oh, ok, if U8 only knows, then having some way to query U8 would probably be best.15:11
SaviqChrisTownsend, ltinkl, I think when changing language, we should set the default keymap, too (at least if it's empty?)15:11
ChrisTownsendltinkl: Would it be some Dbus interface you would expose?15:11
Saviqplease no15:12
SaviqChrisTownsend, can't you access accountsservice?15:12
ChrisTownsendSaviq: Via DBus?15:14
ChrisTownsendSaviq: I guess I'm asking if it provides a dbus service.15:14
SaviqChrisTownsend, AS does15:15
SaviqChrisTownsend, org.freedesktop.Accounts15:15
Saviqit's a property there15:15
ChrisTownsendSaviq: Yes, actually I do that in the code I'm developing now.  It's the InputSources property, right?15:15
SaviqChrisTownsend, yes, that's the "official" API15:16
ChrisTownsendSaviq: Ok, sure.  Well, my question goes back to this: InputSources is blank when pairing a keyboard, so how is the keyboard layout chosen in that case?15:17
SaviqChrisTownsend, today we assume US15:17
Saviqso you should do the same IMO15:18
ChrisTownsendSaviq: lol, ok.  Then it's the responsibility of the user to set it correctly after pairing.15:18
Saviqltinkl, would you say that we should fill InputSources when changing language or should we default to the default language keyboard based on the current language?15:18
ChrisTownsendSaviq: Sure, I can assume that too.  Well, currently, I always assume that:)15:19
SaviqChrisTownsend, not necessarily ↑15:19
SaviqChrisTownsend, but doing that you'd be on par with unity8 ;)15:19
=== dandrader is now known as dandrader|lunch
ltinklSaviq, not sure... we could certainly do this in the Wizard, to set the default HW keymaps (as we do wirth OSK)15:24
ltinklSaviq, still I need to expose the current keymap somewhere, InputSources in AS/DBUS isn't what Chris needs15:25
Saviqltinkl, oh you mean when we're switching it15:26
ltinklSaviq, exactly15:26
Saviqltinkl, can't he take it from the surface?15:26
ltinklSaviq, ah right, but onky MirSurface (from qtmir) has it, the getter is missing in Mir itself :/15:27
ltinklSaviq, the correct way imho would be for Mir to provide the getter (besides the setter it has), then anyone can read it15:28
Saviqltinkl, think it's on purpose clients don't know?15:29
ltinklSaviq, hmm in theory, Mir has a surface observer so you at least get a signal when the keymap gets changed, that might be a way too15:29
ltinklChrisTownsend, ^^15:29
ChrisTownsendltinkl: Hmm, maybe Xmir would be the one that should handle keyboard mapping since it's the thing that interfaces with Mir.15:31
SaviqChrisTownsend, totally15:31
ltinklyeah, you could listen to the keymap_changed signal from Mir observer15:32
ltinkland propagate it into the container15:32
ChrisTownsendltinkl: Yeah, ok, I guess I need to talk to duflu(?) about how to implement something in Xmir to do something like that.15:33
ltinklChrisTownsend, yup15:33
ChrisTownsendltinkl: Saviq: Thanks guys!15:33
ltinklChrisTownsend, duflu or anpok15:33
anpokhm?15:33
anpokkeyboard mapping?15:34
anpoknot keymapping?15:34
Saviqanpok, keyboard layout15:35
ChrisTownsendRight, layout15:35
anpokdo you need to know which layout?15:35
anpokor is it enough to know that it changed? /me hasnt read the scrollback yet.15:36
ChrisTownsendanpok: Well ,however we accomplish it, we need to set the correct layout in the libertine container for X apps that matches the currnt layout in U8.15:36
anpokah ok.. we could forward the keymap itself15:36
ChrisTownsendanpok: Ideally, we would want "xkb:de" set in X for the container if U8 is using "de".15:37
Saviqanpok, I just wonder if there's a reason not to tell the client?15:37
ChrisTownsendanpok: So one idea is that Xmir could get the layout from Mir and set it appropriately for that X session.  And could even possible listen for signal when it changes in U8 and change it for the running X instance.15:38
anpokthere is none.. we just dont provide the xkb settings to the client.. just the keymap itself..15:39
ChrisTownsendanpok: Hmm, so it's not possible with the way Mir is currently implemented?15:50
anpokno. we just have to eihter also send the credentials used to assemble the keymap or forward the keymap that we received from the server..15:52
ChrisTownsendanpok: Ok, looks like that is a dead end.  Saviq, ltinkl^^^^15:53
anpokthe latter xmir could already do .. the former ... needs a mir change15:53
ChrisTownsendanpok: After reading your last statement, so there is a way to do it via forwarding the keymap received from the server to Xmir?15:56
anpokyes15:56
ChrisTownsendanpok: So Xmir would just need to be modified to do that, right?15:57
anpoki assume so yes15:57
ChrisTownsendanpok: Ok, thanks15:57
ChrisTownsendSaviq: So just to confirm, I set the language to German and the keyboard layout stays US.  So currently, it seems that the user has to explicitly set the keyboard layout they want, which is kind of what I expected, but wanted to chack.16:15
=== dandrader|lunch is now known as dandrader
=== alan_g is now known as alan_g|EOD
=== Tk is now known as Guest44387

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!