From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2C5FDlVtkWB3SAEAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 17:50:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sJrdCVVtkWD8bAAAbx9fmQ (envelope-from ) for ; Tue, 04 May 2021 15:50:45 +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 DA28B1A568 for ; Tue, 4 May 2021 17:50:44 +0200 (CEST) Received: from localhost ([::1]:36880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldxJs-00033w-2u for larch@yhetil.org; Tue, 04 May 2021 11:50:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldxJD-000336-Q7 for guix-patches@gnu.org; Tue, 04 May 2021 11:50:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldxJC-0003G0-FU for guix-patches@gnu.org; Tue, 04 May 2021 11:50:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldxJC-0002mw-DQ for guix-patches@gnu.org; Tue, 04 May 2021 11:50: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 15:50: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 , Raghav Gururajan Cc: 44354@debbugs.gnu.org Received: via spool by 44354-submit@debbugs.gnu.org id=B44354.162014337110703 (code B ref 44354); Tue, 04 May 2021 15:50:02 +0000 Received: (at 44354) by debbugs.gnu.org; 4 May 2021 15:49:31 +0000 Received: from localhost ([127.0.0.1]:53918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldxIg-0002mZ-UX for submit@debbugs.gnu.org; Tue, 04 May 2021 11:49:31 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:50631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldxIe-0002mR-KQ for 44354@debbugs.gnu.org; Tue, 04 May 2021 11:49:29 -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 4FZPR86X8Rz3wBg; Tue, 4 May 2021 17:49:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620143365; bh=f3oBX5Iku6hih+hPdrwG8s74dIfuBUGeGFDAW9hYHgk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=TOEgE/p9vQSeovUBzl5cRis0g8ggCj217b3ZoSoYmC5mPmR56KO+73R6jqhqJubGi cOaxMg96SEpHpWg/Yns/UTkKZbfsNF6wD4oD9JeLj3EZgo+15D6Pw7gCebtT3qIJvN O+0PqYycbYF3hKjao4AXJgP0I6j9OEYsLhgIBPvY= Message-ID: From: Leo Prikler Date: Tue, 04 May 2021 17:49:23 +0200 In-Reply-To: <87r1imsj5d.fsf@elephly.net> References: <875yzzszyu.fsf@elephly.net> <3497ef1623c1a88c8fb9f09c068a078ba857e25f.camel@student.tugraz.at> <8735v2u8f3.fsf@elephly.net> <3149f088b6e5c7d13b8f10616d7828cedc90ecba.camel@student.tugraz.at> <87r1imsj5d.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=1620143445; 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=f3oBX5Iku6hih+hPdrwG8s74dIfuBUGeGFDAW9hYHgk=; b=eDUXzoosYo25FbnA2qSuVDAmQx2q+aTXc/Emo6nudRhKxSg2hEcgMc/YamXM0H8VMSnagO Xqo7ZV8CG7qFQgxy8UVvtHv/H1ezQFgdIR+jN97o+fbtcl5rKfvHAcWcf36OzbHbaIQv8b cfVj2dSi5DMjgZlXpvZlAnxC3cK93fDD4zn5vqPoF4QtvoZl3v6K0zugl6yQ9dwBZn3ZTh eokaCWGR17hS3SeFknlDISgyeuYE0E88WJ8Ghd30Tdpncgtcga959+9BCWWP0MvQLejoU+ j3nFpsJm2gZETIaTUUgUCUB3vnV/5xqXrFGVFXivkQ4LU1DN5lDpxRNL2lCxvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620143445; a=rsa-sha256; cv=none; b=I2lTpXqyRHdWdScydUZPK1PEpz4rnLQj4pftxruesixuOS0NIqIaXPyAa77pE16AUQSxI5 btBeTnyzW8t1Lse4wN+7ee26dxKuA2IMI+cMICouxbveGt2BguL4PYPOQvjeJ0zlVvt6dd 47gCQ5AvccY6JQMX24Pt1gDVvIt9kKau1qYpU0tKVSq6aHN+pxm5gYW449W/EKjzAm0JPb b7Nryl3IGrlWiRbgb5Tm9dVZ5BZ2mREB1os0ljECWmUjkB9Xr74SXZNlvU6pLChVh6cYBl ZrXnSaxPqyoLqN3GOSF+zlZmPm787Quh8v2IwaO63becugxrYo8Fn6bAqYtYWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="TOEgE/p9"; 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="TOEgE/p9"; 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: DA28B1A568 X-Spam-Score: -1.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9/vxaBIyuizb 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 > user’s ibus daemon over dbus and offer available input methods > this way. Perhaps we can get rid of static IM_MODULE_FILEs and > 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 > > local > > ibus setup. I'd even go so far as to argue, that it doesn't > > make your > > setup more difficult at all. All it does is make things easier > > for > > those who want a global gnome+ibus setup. > > There may be a misunderstanding here: I don’t *have* a setup. As > 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’d rather we take a step back to see > if all this GUIX_GTK* variable patching is still worth doing, and > whether there are better ways we could achieve a reliable > configuration of ibus — no matter if that’s a global configuration > or a per-user one. IIRC GUIX_GTK* is just a way of not clobbering GTK_IM_MODULE_FILE. 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. 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. Regards, Leo