From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Integrating different input methods into Guix Date: Mon, 23 Jan 2017 01:32:11 +0100 Message-ID: <20170123013211.22b9fb84@scratchpost.org> References: <79e91191.7f7.159c3ade0c8.Coremail.tumashu@163.com> <20170122021526.1fb7e1d8@scratchpost.org> <4065eca8.19dc.159c40abf83.Coremail.tumashu@163.com> <20170122090605.657c5b99@scratchpost.org> <83607e0.462.159c89d1385.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]:32869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVSYZ-0003Wz-3x for guix-devel@gnu.org; Sun, 22 Jan 2017 19:32:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVSYV-0007T2-VK for guix-devel@gnu.org; Sun, 22 Jan 2017 19:32:23 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:59596) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVSYV-0007SK-OS for guix-devel@gnu.org; Sun, 22 Jan 2017 19:32:19 -0500 In-Reply-To: <83607e0.462.159c89d1385.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, I understand. For now, let's see what the others say about the proposed design. If you want to just set the environment variables in your user session, you can just edit ~/.bash_profile and invoke im-config there (maybe unchanged - although it bothers me that it then would invoke random versions of the input methods - which can change depending on what's installed right now). But it would be nicer if the login screens used the input methods, too. That would be possible by either writing a service, or, as a quick fix, by adding the environment variables to gnu/services/xorg.scm : (fork+exec-command (list (string-append #$slim "/bin/slim") "-nodaemon") #:environment-variables (list (string-append "SLIM_CFGFILE=" #$slim.cfg) "IM_CONFIG_xyz=FIXME" #$@(if theme (list #~(string-append "SLIM_THEMESDIR=" #$theme)) #~())))))