From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QNk+L+EQkWBEiQAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 11:16:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4NHIKuEQkWAWVQAAbx9fmQ (envelope-from ) for ; Tue, 04 May 2021 09:16:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CEF0FE28E for ; Tue, 4 May 2021 11:16:15 +0200 (CEST) Received: from localhost ([::1]:51934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldrA6-0006S3-EH for larch@yhetil.org; Tue, 04 May 2021 05:16:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldr9w-0006PY-3c for guix-patches@gnu.org; Tue, 04 May 2021 05:16:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40441) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldr9u-0001Mq-Mf for guix-patches@gnu.org; Tue, 04 May 2021 05:16:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldr9u-0005lc-HN for guix-patches@gnu.org; Tue, 04 May 2021 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44354] [PATCH] gnu: gnome-deskop-service-type: Set GUIX_GTK*_IM_MODULE_FILE. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 May 2021 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44354 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus , 44354@debbugs.gnu.org Received: via spool by 44354-submit@debbugs.gnu.org id=B44354.162011971219241 (code B ref 44354); Tue, 04 May 2021 09:16:02 +0000 Received: (at 44354) by debbugs.gnu.org; 4 May 2021 09:15:12 +0000 Received: from localhost ([127.0.0.1]:51983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldr96-0004zq-4Y for submit@debbugs.gnu.org; Tue, 04 May 2021 05:15:12 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:38976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldr94-0004wi-OR for 44354@debbugs.gnu.org; Tue, 04 May 2021 05:15:11 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FZDhB6Wv3z3wKy; Tue, 4 May 2021 11:15:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620119707; bh=7Ww9XG7yLDs8rTZwloOjC0OR9RXzZynkK9OsdxM6pu8=; h=Subject:From:To:Date:In-Reply-To:References; b=ZGHBEsO6GR8mV/wctzdqvxzdH93rAeSWYPmSJuz3Kul+NhZOIgFisP92b7mFfCDaL TdRdtNaDdloF6Du/dmxxOrOTnWkb+W9uw6oLELcJJKoXP2xC4D/N0QCHQXDC8PiZUK z2+rP7McDDP31afxckgVb673ATcWGmF+DuKrWMIQ= Message-ID: <3497ef1623c1a88c8fb9f09c068a078ba857e25f.camel@student.tugraz.at> From: Leo Prikler Date: Tue, 04 May 2021 11:15:05 +0200 In-Reply-To: <875yzzszyu.fsf@elephly.net> References: <875yzzszyu.fsf@elephly.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620119776; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7Ww9XG7yLDs8rTZwloOjC0OR9RXzZynkK9OsdxM6pu8=; b=N7wkP/Sllc8QRhdPHaEmmDJEZhYBFvJU7E5hfwk3I2PLz5AlX9nlJRSqgu8CllLPsw6vfe BlxLiKDGutINFW1Oo75rQUX9iuTGvbDLGPwTZttHAKlgowso6tV0HyxccdeRbxbm7SFNjT bHdihEsfNge8dVwqthM96KxVKT2mkTwzdr8zUHrPevKLhB6POuNvbBCqfOTvVAnILzOBwR fYpBEZ9WZ2+XSGfz+HiO66JUOqrifIoO3J1bHUS6YDJQoAcEKinhKCGlhCGy/sMEfg8o4p Z612b4kkwcxKESf2q36DDvI5YEmayxwk9LPDoWbfV7RsgjxMbEY7SngafUxHTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620119776; a=rsa-sha256; cv=none; b=gC0bZ5DwROUgQBt4o1/fheNK90cH/AMuZRYj8c8BOAXgnGuxHFoyw40wmtAQfPpV807S74 XvsCyMHKNutRu43z7k5HTS4qPuNjY2EQyZ//PrqLTGkhX9SUs6Lm0fw2BstyEcdqxWPJsH G52oyanB+V3LkP5GX9Qgq4VWDYQ+64N9y16xPY1/BPUMvpJHvD3AOGf+l2ne9n3ofh05PD LkN9mL86go4ERRTIrFAeIVxavl1hi4Iz3SuNntLiTArZGdyvKvv375/Rt6SIfLk+UEo8ly eZs6xXAOuufxA0ZViRSMkVo2Ma9PGWIgen5ZtI8QHvprN94OE2NMCa2tYr6K+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=ZGHBEsO6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=ZGHBEsO6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: CEF0FE28E X-Spam-Score: -1.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: g44AurdvywaU Hi, Am Dienstag, den 04.05.2021, 09:46 +0200 schrieb Ricardo Wurmus: > Hi Leo, > > I haven’t been able to get ibus-libpinyin to work even when these > variables are set. I know that these variables used to work once. "Used to work" in what sense? Did ibus-libpinyin work for you or someone else with these variables set and now it's no longer working? > I don’t know if setting them is the correct thing to do for Gnome. > This patch would also only work for system-wide installations of > input methods. Input methods that have been installed in a user > profile would not be part of the cache files. I'm not sure we can expect things to "just work" with ibus in the user profile. As far as I'm aware, we don't expect GDM to find the user's custom gnome installation without some hacking on their part, so I don't understand why we would expect GNOME to find ibus in a similar setup. > Can we take a step back and come to an understanding of how ibus > in Gnome is supposed to work? Ibus in Gnome is (supposed to be) > more “integrated” than in other environments, which means that we > should first aim to understand what Gnome attempts to do with > ibus. As far as I know, GNOME should recognize ibus as one of its input modules and then offer appropriate input sources in its settings. The specifics are handled by gsd-keyboard-manager, at least as far as setting these is concerned. How the settings are interpreted is probably a matter of GtkIMContext, which at some point hands off control to ibus IIUC. > We should also take into account dconf keys, such as these: > > /desktop/ibus/ This seems to contain settings, that IBus wants to know about, including stuff like what Emojis you last typed for the completion UI and so on, and so forth. Of particular interest here is probably the key '/desktop/ibus/general/preload-engines', which lists all engines to load at startup. > /org/gnome/desktop/input-sources/mru-sources > /org/gnome/desktop/input-sources/sources These are lists of tuples, which are either ('xkb', VARIANT) or ('ibus', ENGINE). As far as I know, the latter won't work correctly without GNOME knowing about ibus existing, for which I patch GUIX_GTK*_IM_MODULE_FILE. > /org/gnome/desktop/interface/gtk-im-module This one's likely set to "ibus" inside an ibus setup. In particular, gsd-keyboard-manager sets it to "ibus" if it notices any of the input- sources to contain an ibus engine and to "gtk-im-context-simple" otherwise. I'm sure there would be more elegant solutions, but that's the one they chose. Regards, Leo