From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id RiMWDSZ1zF+0SAAA0tVLHw (envelope-from ) for ; Sun, 06 Dec 2020 06:07:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OAlDCCZ1zF+mfwAAbx9fmQ (envelope-from ) for ; Sun, 06 Dec 2020 06:07:34 +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 5984A9400CB for ; Sun, 6 Dec 2020 06:07:33 +0000 (UTC) Received: from localhost ([::1]:39166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klnCl-0000XR-Qj for larch@yhetil.org; Sun, 06 Dec 2020 01:07:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klnCL-0000WS-0p for guix-patches@gnu.org; Sun, 06 Dec 2020 01:07:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klnCI-0004sf-84 for guix-patches@gnu.org; Sun, 06 Dec 2020 01:07:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klnCI-0002lZ-2M for guix-patches@gnu.org; Sun, 06 Dec 2020 01:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45064] [PATCH 0/2] Set environment variables for GTK+ input methods via profile startup files Resent-From: iyzsong@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Dec 2020 06:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45064 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45064@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160723480910589 (code B ref -1); Sun, 06 Dec 2020 06:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Dec 2020 06:06:49 +0000 Received: from localhost ([127.0.0.1]:48747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klnC5-0002ki-5M for submit@debbugs.gnu.org; Sun, 06 Dec 2020 01:06:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:58156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kln0Z-0002RD-0m for submit@debbugs.gnu.org; Sun, 06 Dec 2020 00:54:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kln0Y-0006gh-70 for guix-patches@gnu.org; Sun, 06 Dec 2020 00:54:54 -0500 Received: from mail-oln040092255016.outbound.protection.outlook.com ([40.92.255.16]:6038 helo=APC01-HK2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kln0V-0000eO-Qm for guix-patches@gnu.org; Sun, 06 Dec 2020 00:54:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gBUBdq2JJ5Sh4oEQbsKTk3THMlIq86VhA9J4nrGkRrjifQtsFme5sjKAhy1YUoNmKt2DSRyfFnu3ur4+aHO4TKJhcVLzAR7kUAiuau3zMJWWZ30Eg+7rPnFN5GtLMlud38qGsxDgw3QWgzqEfeRXzWl4UDW5vPTH15kVU+6eUM4DYBzuKnG6YaekleEKAHY35WrNXPe16aHs2nND3K/JZfMxoEqj3xmpiPABbeazqpPLhXokWw/qHje8BLYy61jeRwyUGxAVPYWbuecV1MNo4RjbrT1CMqt94M7xcgjEKGFr4UpswhwntnqU7pHMP14UPuvpboHq+H78MTBtx8R3sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y78AAc/5CYjeRMoHlhuT61+/F1483Sj2mrufdhBiOcQ=; b=j1L415OpROA5LSrsCEO3R3ZzB7U3inoweaemnLG9B9PrHdJ5sSgKRuLwG3pSdBMWo8Q1m+HH7Lsh23yZ8j/HU2JyQfqWfN4OGdIocY7Yltyse4nvaACZX+E8Z00q2QMTxpT8hXfgjAw7J73aayYZsnkTL2/NY1RzcdbYFrCkYymzaWSbvnVqyxlPgunSfO5QMeel65f865/hoG0+YNImokT/PC6ED7oKdZxSCerstL/cFm8Ezk7ot19BWEIw1tDwITxZxt9yennjc06z1y1VhG+794sIhF/aiK7QaqXQccRM0yJoEteGrh6b1UocSgAX2lQ1aIjCA/RWLn4AHXfBDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y78AAc/5CYjeRMoHlhuT61+/F1483Sj2mrufdhBiOcQ=; b=t40vQnQzyquv/+JTX4CTKeZVLBItqN4GqqKs0dP7MlaUlcTidlDaoum6ZEijL6rylpBsBTxYKpyk/BVu4tFuQZMuIMNbN2oZpWPgXv2nUDDfnWagaJkQu4rkOvqyuhdTzt3M+AvKufQ0NdICXzWXaru0TGt7IOcmVYpLLKqXyvk8581hjycdx+OpcVnbBmrJy4T6fMNfEfvMwWl/dhtzMSM0yYBD6GWKJgmCHxElJyotnxWfoDVGzshzky6kUJVpZtBRcGWyuOYCNxsJBwZgzxi/VPOwFQZfLAYWYKDq0nHXgcOr/6fCiKgtoo+HUf7y5Fgoig0D2oVlWGBqsT1gJg== Received: from PU1APC01FT064.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::4e) by PU1APC01HT213.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::428) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Sun, 6 Dec 2020 05:39:37 +0000 Received: from TYAP286MB0185.JPNP286.PROD.OUTLOOK.COM (10.152.252.59) by PU1APC01FT064.mail.protection.outlook.com (10.152.253.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sun, 6 Dec 2020 05:39:37 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:877BA171DB780838D7E68C6F2BDC92A62AA2EE66CC0E363C7991E7A384A4AADD; UpperCasedChecksum:A2E0F7161039BA216E2BE992C5392F04AB56A7BA36A1A3432D701BF74A55C85A; SizeAsReceived:8530; Count:45 Received: from TYAP286MB0185.JPNP286.PROD.OUTLOOK.COM ([fe80::d802:80c9:f6bd:1fbb]) by TYAP286MB0185.JPNP286.PROD.OUTLOOK.COM ([fe80::d802:80c9:f6bd:1fbb%8]) with mapi id 15.20.3632.017; Sun, 6 Dec 2020 05:39:37 +0000 From: iyzsong@outlook.com Date: Sun, 6 Dec 2020 13:40:06 +0800 Message-ID: X-Mailer: git-send-email 2.29.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TMN: [VAF+4WlnJa36yqxB26GZxuzcRP/Lnn0lPk0m0vQW6vMQb5yBylMQWUFUOY1pv375] X-ClientProxiedBy: HE1P190CA0047.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::36) To TYAP286MB0185.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8038::14) X-Microsoft-Original-Message-ID: <20201206054006.9567-1-iyzsong@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (2409:8a62:372:3600:2f1:f5ff:fe18:6bb) by HE1P190CA0047.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sun, 6 Dec 2020 05:39:35 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 86a7e7ee-4c7a-4f43-0fa9-08d899a95162 X-MS-TrafficTypeDiagnostic: PU1APC01HT213: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q36e4WVUrFbxeCha6o3Y7xmU6+Du8+Um5RncHpA9DrAxYQJpOylc2a1eo97N0ZiJf1YqMCSbwpbLYJYw3ACNCN5cSF9DO9RGkT3rURCdP++U5MuXmHX4hytyL3+MyIuYlatWdgSXzW+Vwi6ZgH7Gc985b1FcihyD6z0VRtKbIdX2g/YXYdHxF4IT8mIZ2ZzcG8xWQM+OMk77xSWrPK1BhhTfGrKAI5tRAWQx29rpfqGraafuhiCFonRZ1pF0rPks X-MS-Exchange-AntiSpam-MessageData: T/sggI/TxArQO7KDRTrSeUng+IvBM8xiyILIdLHetfzVKo5CpJh2sUfFV8sE0cfRjK0jAMZvsVQNK8tphte9VxUr27lxSct8J9k9QbEjjTyp701AU+bMlxc3k0rxYewy158dBCqYaB6z1m12wV1LOTkZABxljlaGCNiOmYZdoEHxWOJMKaWFJcPTgzF5cCbz9SO365IngWkGh+AZwoxl4w== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86a7e7ee-4c7a-4f43-0fa9-08d899a95162 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2020 05:39:37.4694 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: PU1APC01FT064.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT213 Received-SPF: pass client-ip=40.92.255.16; envelope-from=iyzsong@outlook.com; helo=APC01-HK2-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 06 Dec 2020 01:06:47 -0500 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-Spam-Score: 0.80 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=outlook.com header.s=selector1 header.b=t40vQnQz; arc=reject (signature check failed: fail, {[1] = sig:microsoft.com:reject}); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (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: 5984A9400CB X-Spam-Score: 0.80 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: +D8K1Xw+chDY From: 宋文武 Hello, Guix! To use GTK+ input methods, currently we need set ‘GUIX_GTK2_IM_MODULE_FILE’ and ‘GUIX_GTK3_IM_MODULE_FILE’ manually in .xsession or .bash_profile, we also having a patch [1] that set them for gnome via ‘gnome-desktop-service-type’. But I think the right place to set them is the ‘gtk-im-modules’ profile hook, so the first patch make ‘etc/profile’ source files in ‘etc/profile.d/*.sh’, and the second patch add ‘etc/profile.d/gtk2-im-modules.sh’ and ‘etc/profile.d/gtk3-im-modules.sh’. The first patch is also useful for packages that provide profile startup files (eg: nix). Thanks! [1] Sou Bunnbu (宋文武) (2): profiles: Load application specific startup files. profiles: gtk-im-modules: Set environment variables for input methods. guix/build/profiles.scm | 13 ++++++++++++- guix/profiles.scm | 12 ++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) -- 2.29.2