-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(enh) deal with loss/error on X display #39
Conversation
71dede3
to
193538f
Compare
@rbreaves How do you feel about reviewing code? I was moving really fast at first but as things slow down a bit I wouldn't mind eyes on PRs going forward (and transitioning to a more PR driven workflow overall)... Is that something you might be comfortable/interesting in doing? If Kinto switches you'll instantly become one of the largest users of the project... :-) |
@RedBearAK Thanks for all your help - you wouldn't want to test this PR with some of your tough logging in/out/whatever tests? Hopefully after this lands I can release 0.6 and then take a break for a bit. :) |
🤔 If I pip install In short I'm not clear on exactly what Or is most of this irrelevant to just trying to test the X error handling mechanism? |
I think this... whichever way you were running it before and having all the problems - run in that way again. What we're looking for is no more problems. |
Well, I had issues whether I was running as root or as user, so... Alright, well, I took a leap of faith and tried "Switch User" from the user menu. I'm in Ubuntu 22.04, GNOME 42.1. In the past the "Switch User" was broken from this user for reasons unknown, but it looks like the upgrade to 22.04 LTS un-broke it. Other than the fact that GNOME acted like I had just asked it to suddenly cure cancer and end world hunger when I hit "Switch User" (it took a WHILE and did weird things to the screen), things have appeared to go pretty well. At first it was just asking me to log back in to my user, but I clicked on the icon in the corner that lets you select the session type, and suddenly I was back at the full multi-user login screen (where I was supposed to be in the first place). Even before that, I was able to type just fine into the password field. So that was a marked improvement. At the full login screen, I was able to select a user with arrows and Enter, then enter the password without difficulty. Once I logged into the other user, I was able to open a text editor and type away with no issues. I opened a terminal and saw And then I logged out of that user and logged back into this one. Did NOT need to restart anything in order to have my shortcuts active once again. It's as if I never left. What I didn't try is installing and running I think you'd be OK to allow yourself one cookie for the day, for being a Good Coder[TM] and accomplishing a minor miracle or two. Enjoy it while you can, tomorrow will probably be a disaster. 🤘🏽 😈 🤘🏽
Remember to toss some salt over your shoulder when you say things like that. |
Oh, I forgot to checkout the |
Nope. I have not merged yet. |
There is no magic here... Running two is not going to work. The remapper would be stepping all over itself. If the X display is the same then the new user that logged in would have all their keys mapped also (provided they gave X permissions to the keymapper user). The keymapper works when it can access the X display it was told about at startup (via the ENV)... when it can't it goes dormant and just passes keys straight thru. |
Resolves #2. Resolves #40.