From debbugs-submit-bounces@debbugs.gnu.org Tue May 04 11:49:31 2021 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: Subject: Re: [PATCH] gnu: gnome-deskop-service-type: Set GUIX_GTK*_IM_MODULE_FILE. From: Leo Prikler To: Ricardo Wurmus , Raghav Gururajan 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44354 Cc: 44354@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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