From f4adc1f52d777cea3331b4acae0c3bdec4d0eb70 Mon Sep 17 00:00:00 2001 From: Paper Date: Fri, 12 Mar 2021 21:10:34 +0000 Subject: [PATCH] fix login by removing everything after # from URL --- giara/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/giara/__main__.py b/giara/__main__.py index 10b9ae2..d235332 100644 --- a/giara/__main__.py +++ b/giara/__main__.py @@ -53,8 +53,9 @@ class GApplication(Gtk.Application): def open(self, app, files, *args): target = files[0].get_uri() print(target) + code = target.split('=')[-1].split('#')[0] get_authorized_client( - reddit=self._unauth_reddit, code=target.split('=')[-1] + reddit=self._unauth_reddit, code=code ) self.continue_activate(self._unauth_reddit) -- GitLab on> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/installer/keymap.scm
AgeCommit message (Collapse)Author
2021-09-21installer: keymap: Fix optional fields handling.Mathieu Othacehe
Fixes: <https://issues.guix.gnu.org/50723>. The keymap xml contains optional shortDescription and description fields. The assoc-ref call on those fields can return false, handle it correctly. * gnu/installer/keymap.scm (xkb-rules->models+layouts): Introduce a new "maybe-empty" helper to deal with optional fields. Use it for shortDescription and description fields.
2020-04-09installer: Allow Alt+Shift toggle from non-Latin keyboard layouts.Florian Pelz
Fixes <https://bugs.gnu.org/40493>. * gnu/installer/newt/keymap.scm (%non-latin-layouts): New variable. (%non-latin-variants): New variable. (%latin-layout+variants): New variable. (toggleable-latin-layout): New procedure to compute combined layouts. (run-keymap-page): Use it. (keyboard-layout->configuration): Apply it in config.scm. (run-layout-page): Mention Alt+Shift. * gnu/installer/keymap.scm (kmscon-update-keymap): Pass on XKB options. * gnu/installer/record.scm (<installer>): Adjust code comments. * gnu/installer.scm (apply-keymap): Pass on XKB options. (installer-steps): Adjust code comments. * gnu/packages/patches/kmscon-runtime-keymap-switch.patch: Apply XKB options.