From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Integrating different input methods into Guix Date: Sun, 22 Jan 2017 09:06:05 +0100 Message-ID: <20170122090605.657c5b99@scratchpost.org> References: <79e91191.7f7.159c3ade0c8.Coremail.tumashu@163.com> <20170122021526.1fb7e1d8@scratchpost.org> <4065eca8.19dc.159c40abf83.Coremail.tumashu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVDAL-0002FX-C7 for guix-devel@gnu.org; Sun, 22 Jan 2017 03:06:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVDAG-0000yn-BK for guix-devel@gnu.org; Sun, 22 Jan 2017 03:06:21 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:40493) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVDAG-0000yB-4o for guix-devel@gnu.org; Sun, 22 Jan 2017 03:06:16 -0500 In-Reply-To: <4065eca8.19dc.159c40abf83.Coremail.tumashu@163.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: tumashu Cc: guix Hi, On Sun, 22 Jan 2017 10:39:15 +0800 (CST) tumashu wrote: > The other problem is: > > im-config include many im's config files and I cannot let im-config depend all the im, > if fcitx is not installed, How to deal with "/usr/bin/fcitx" in fcitx config file which is included in im-config? > just replace it with "fcitx"? You mean the configs for all the input methods ("cjkv.conf", "ibus.conf", "fcitx.conf", "uim.conf", "hime.conf", "gcin.conf", "maliit.conf", "scim.conf", "hangul.conf", "thai.conf", "xim.conf", "kinput2.conf", "xsunpinyin.conf") in "data" ? I think then one would maybe write a "input-method-root-service" Guix service and other im services and let each im service extend that service. That way the user can have the different input methods as services in their Guix system config file. See gnu/services/cups.scm "union-directory" for how you merge multiple extension's directory trees into one. See operating-system-environment-variables for the environment variables that are already exported to every process. See the Guix manual "Service Composition" for how to compose services. We already have packages for ibus, fcitx - but no service for ibus, fcitx.