From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4GhrMjvkIWOqOQEAbAwnHQ (envelope-from ) for ; Wed, 14 Sep 2022 16:24:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OIbEMTvkIWMt+QAAG6o9tA (envelope-from ) for ; Wed, 14 Sep 2022 16:24:59 +0200 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 6CFC44269E for ; Wed, 14 Sep 2022 16:24:59 +0200 (CEST) Received: from localhost ([::1]:60058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYTJy-0001L1-HP for larch@yhetil.org; Wed, 14 Sep 2022 10:24:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYSRq-0007kc-Hf for guix-patches@gnu.org; Wed, 14 Sep 2022 09:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYSRq-0001dL-77 for guix-patches@gnu.org; Wed, 14 Sep 2022 09:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYSRq-0003kZ-1o for guix-patches@gnu.org; Wed, 14 Sep 2022 09:29: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: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Sep 2022 13:29: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: Leo Prikler Cc: Ricardo Wurmus , Raghav Gururajan , 44354@debbugs.gnu.org Received: via spool by 44354-submit@debbugs.gnu.org id=B44354.166316208414343 (code B ref 44354); Wed, 14 Sep 2022 13:29:02 +0000 Received: (at 44354) by debbugs.gnu.org; 14 Sep 2022 13:28:04 +0000 Received: from localhost ([127.0.0.1]:54176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYSQu-0003jH-9X for submit@debbugs.gnu.org; Wed, 14 Sep 2022 09:28:04 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:36857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYSQr-0003iv-E5 for 44354@debbugs.gnu.org; Wed, 14 Sep 2022 09:28:03 -0400 Received: by mail-qt1-f180.google.com with SMTP id h21so11101010qta.3 for <44354@debbugs.gnu.org>; Wed, 14 Sep 2022 06:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date; bh=iOBYqyUBbf+eWlgx9Ku6wNy7IsMEaQYM/OdJ7+5psw0=; b=OceI1N0BB+p2BZ4/1GxfGexyGe2hEYE28fPrH/RCyNV4cUtSeoanqpUKEkiHxML704 fIELgk5kE+pzyVfM+hWSUpYDiYc025eAt2Wi55pPRzCuP7PUlLm6U89dt6wc2prX1WsQ ff9bugTlhaAszTAOflOfH9T3iyMQPA+Q+kxv9TS6KfL/OUqJzbTTdyCDTODphkVwBEP3 bGzmOx3TrEvhrzatcbEqILCNoCPCj6XV3iPDhDkw4wdd6hd9HzRser+xKznup+e14j6R paCl/x+aPH1cHjQAa/CfAPSuYW0mQzKttv0/EPkWCbZwAdOXU7QK4SdMMgTW9BUju1b/ LC6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date; bh=iOBYqyUBbf+eWlgx9Ku6wNy7IsMEaQYM/OdJ7+5psw0=; b=BP7pt6q4HiWcu1BmX2bZ5iHOEryF42oDn0QASmhjIPs6PMp8pp0IEYuYoyKmcGpO2l WeRukT7mHwADhpuJOaecdi5/uiauq6J/Qu+Ej4Uv9tI9WxO94XozFvixR2TiTbQ8BKUg WW8ZN29S39VD3GdXK3XiFvLJI9PhAAb7gHiITWeMxmDIkATgqS4FfvHWfUon7H9dyAjE nGXcVAkK9lusUxjOEWraP+yw3Qvmu/3DN2VbA+yjMOAOBwptcw4zdvBtpD0oTVXr6Dim y1xUGAO4pbKJGTyAxc1cQOU7/zqJs6YHqWYSyyLth09wGajnfLG7rTsBAImURhFgfCv5 6YHQ== X-Gm-Message-State: ACgBeo11x58miOXtLuBnfvpa0DAqB4YPt/Ursry4UsWQQwpO04jG1ZI/ wX4+YzLtLRYalXuoq9XMsHfLP8m0Vhw= X-Google-Smtp-Source: AA6agR7qXFcudJsO2mbagCbfec8vPfDGjt0osRWjyarVfGtgEpVs4J2TT85Izg4HgldKmMA4psc6Xg== X-Received: by 2002:ac8:59d2:0:b0:343:57f:3049 with SMTP id f18-20020ac859d2000000b00343057f3049mr31550522qtf.55.1663162075464; Wed, 14 Sep 2022 06:27:55 -0700 (PDT) Received: from hurd (dsl-159-203.b2b2c.ca. [66.158.159.203]) by smtp.gmail.com with ESMTPSA id l20-20020a05620a28d400b006ce1bfbd603sm1855714qkp.124.2022.09.14.06.27.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 06:27:55 -0700 (PDT) From: Maxim Cournoyer References: <875yzzszyu.fsf@elephly.net> <3497ef1623c1a88c8fb9f09c068a078ba857e25f.camel@student.tugraz.at> <8735v2u8f3.fsf@elephly.net> <3149f088b6e5c7d13b8f10616d7828cedc90ecba.camel@student.tugraz.at> <87r1imsj5d.fsf@elephly.net> Date: Wed, 14 Sep 2022 09:27:54 -0400 In-Reply-To: (Leo Prikler's message of "Tue, 04 May 2021 17:49:23 +0200") Message-ID: <87pmfy13xh.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663165499; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=iOBYqyUBbf+eWlgx9Ku6wNy7IsMEaQYM/OdJ7+5psw0=; b=lB31RPaXDJd8DAwCjY2cvOJFAbvwqhSp5VvYVbgfct5uKSwWINd0JT64Rzo9eTFH1LBIFC dBwelvR/9Hhvrss96XT/v43x02koVVnI01jCuBYyFg45R6yvPFjmUSh6Qaz/4REVC4ETWZ 5FtArvYFMjNPcl+ZzXKMr9voRECGcrUp+8vvsowu55EeaDorijmlTQ+oYMCubRDgztNj12 OlRA4no8BBl72ansK672hs8gtel7sM/ySBh+V5DUc91N2NRbMYxtvZSMb8gylTJ4UHzjJh 8GaxgC2hygega8Y8oQVomR8CXXZTEvfhTYmIQCVJwu4HkYJ3CufiwoTwT/lmRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663165499; a=rsa-sha256; cv=none; b=OkYRMYBOU+qDheYjBy2Z/bt/RNEU3qwfK543yrVNBGpmhhSi1nKPGlIRtnFUqEzAJxkqvx 2E7P5p3afNAJKEsrog5DB8xz7tMbVm5i3nwrgojZ6k4BiQGkWoPZ4VL9qFhKn1wGLX4fOx NDW8pzgzsDru43Vnv31T6K9bipxJD0hhtO5Uh05zPpoVIQrsr75Nqm915f7Vp3vqDHjAnf G5eFDBzHbOlEx/tLJt4rdbEcfD8B6ftjIw6TA/TAK5J/Wl3c6A+wS2b2KhIIb7CCwe3L9S hQgwwDNHv/QD5UH+6wJZbOVxAMzQqxaZu94h4LeDAVuUzeZ7vm+PEQjDepxfEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OceI1N0B; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OceI1N0B; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6CFC44269E X-Spam-Score: 7.68 X-Migadu-Scanner: scn1.migadu.com X-TUID: lMTInq5jPlp8 Hi Leo, Leo Prikler writes: > Am Dienstag, den 04.05.2021, 15:50 +0200 schrieb Ricardo Wurmus: >> Gnome uses dbus extensively, so it should be able to talk to the=20 >> user=E2=80=99s ibus daemon over dbus and offer available input methods=20 >> this way. Perhaps we can get rid of static IM_MODULE_FILEs and=20 >> the problem of monolithic cache files, etc. > That would probably work in some capacity, but > a. It seems ibus does not really export a usable dbus-interface (at > least not according to d-feet). While the communication does appear to > happen via dbus, there are no methods exported, so it's some kind of > black magic. > b. Even if it did, the code to communicate to ibus via dbus would still > need to be wrapped into a GtkIMContext. Perhaps that can be > implemented as part of Gnome, but I don't know how quickly it would be > done. > > In short, I think there's some tight coupling between IBus client and > server going on, which makes Gnome rely on the ibus IMContext > implementation. We could likely try to propagate just the client code > from our GNOME package (we still would need to add it as an IM_MODULE, > but you could use your own ibus at least, provided it's compatible with > the system ibus). > >> > Also note, that my patch would not bar you from setting >> > GUIX_GTK*_IM_MODULE_FILE to something else if you indeed have a=20 >> > local >> > ibus setup. I'd even go so far as to argue, that it doesn't=20 >> > make your >> > setup more difficult at all. All it does is make things easier=20 >> > for >> > those who want a global gnome+ibus setup. >>=20 >> There may be a misunderstanding here: I don=E2=80=99t *have* a setup. A= s=20 >> it is, ibus(-libpinyin) does not work reliably with Gnome. > I wasn't talking about your problems with ibus-libpinyin here, it was > instead meant as a general statement about Guix users currently setting > those variables somewhere to appease Gnome. Their settings would not > be invalidated by this patch. I'm still interested into what causes > the libpinyin variant to fail in this setup, because I doubt it's a GTK > thing. > >> My main point here is that I=E2=80=99d rather we take a step back to see= =20 >> if all this GUIX_GTK* variable patching is still worth doing, and=20 >> whether there are better ways we could achieve a reliable=20 >> configuration of ibus =E2=80=94 no matter if that=E2=80=99s a global con= figuration=20 >> or a per-user one. > IIRC GUIX_GTK* is just a way of not clobbering GTK_IM_MODULE_FILE.=20 > Having that probably makes some sense. As for requiring it for a > proper ibus setup, I do agree, perhaps it's possible to do without it.=20 > I've pinged Raghav, maybe they already know whether Gnome 40 brings > improvements in that regard. > > Perhaps another way of managing these variables if we indeed find them > to be needed would be to move the configuration into a 'guix home' > module. When I wrote this patch, there were no plans of upstreaming it > yet, but if it's possible to set per-user environment variables via > guix home, that might be preferable to a system-wide setting. Ricardo seems to have good arguments about doing things differently (on the user side). With Guix Home now part of Guix, can we close this issue and revisit it? Thanks, Maxim