From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cLwPLUo0zl/wbgAA0tVLHw (envelope-from ) for ; Mon, 07 Dec 2020 13:55:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QA/dKEo0zl/dZgAA1q6Kng (envelope-from ) for ; Mon, 07 Dec 2020 13:55:22 +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 5AE769405D4 for ; Mon, 7 Dec 2020 13:55:22 +0000 (UTC) Received: from localhost ([::1]:54820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmGz3-0004nd-2N for larch@yhetil.org; Mon, 07 Dec 2020 08:55:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmGym-0004kD-EC for guix-patches@gnu.org; Mon, 07 Dec 2020 08:55:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmGyl-0006Ux-1I for guix-patches@gnu.org; Mon, 07 Dec 2020 08:55:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmGyl-0003C5-0K for guix-patches@gnu.org; Mon, 07 Dec 2020 08:55:03 -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: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Dec 2020 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45064 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Prikler Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 45064@debbugs.gnu.org Received: via spool by 45064-submit@debbugs.gnu.org id=B45064.160734928812235 (code B ref 45064); Mon, 07 Dec 2020 13:55:02 +0000 Received: (at 45064) by debbugs.gnu.org; 7 Dec 2020 13:54:48 +0000 Received: from localhost ([127.0.0.1]:52946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmGyV-0003BH-WC for submit@debbugs.gnu.org; Mon, 07 Dec 2020 08:54:48 -0500 Received: from mail-oln040092254034.outbound.protection.outlook.com ([40.92.254.34]:19392 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmGyT-0003Ax-7I for 45064@debbugs.gnu.org; Mon, 07 Dec 2020 08:54:46 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XCoderwhsRb/b0BANv3sYsvm8rE+QJTN/z51ADLVL5Don4Rxx64jedzQJg3dDMiUTBQ1NFcT2hkviDtETFI6wK6NRNYfI84QRlFPLqmlT4QrfRqdLt1cN2/pajgZsXoTKqrcOpIvLiFQTropmxO/fLcPNu8nX1xXP4yhLAQT65FWM5/fAzWxXfnDyr+bPKK6mljYvRAo8+dP9S+CvKZVZRSLJzf4Z973yfVXB51oSaeJTAjAmW6fvtNnwhqsaC5s9Sujw0ie1Dfc4r1j1VzTRCtEjb/QaSpbP68H3ih6wVmsSeoA03zKbi9aIYgVFD28uJ24bFqWwAogLAuXZOpGGw== 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=qsJHnyn+fHWYxPUPhSUBX856mSFCZWo1ft06Y35z+t0=; b=N8JuTooyawBbL+vmf1bXlKaQKjI7G68CPHnuN2B0fGVVtwJixNriOrAHld1p+9+KMhPgx8pvUrrY2g9IknD33mV7WHz7VbZnjklVcNf1U85EOsdsTYPdrEzqCc4XqVsgb3HHvN8/0/uCmvU+qeFNm3O75VUs/ZcfWkGTJnNyHsEZJM2bfwdn+v9zhRI0L3Y5OXtdQSBDok6SderF858nUjvq3DI5Pd5eAbBvj+RijdZx2X61ocTzfkRwtMucgRtSh4yhlgRXfjGinl4iSdiiVdZzH9WejbjI1hb7AWTxSP7jKdDmnFYD2LgOarJRPHKli9U4VEuCnn1MoLj8LNbZug== 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=qsJHnyn+fHWYxPUPhSUBX856mSFCZWo1ft06Y35z+t0=; b=Zaq8C7wcDPoR61OJUb0VVgrIarfBpsdvqGP8Gqkm2bSWXoQP1/3psXHW+UeoLf1rky96u8abJDkWW+8birV8/xknQLTyclDJLJFYR8xWkFMERlcKE5jLnEsDE3RWFPTq9pKbLWrP1xXd/bAivrdod0zzoTj7YnIFsqKlcKCQuZLS6I76LB8swR3exX7ltzdrOwqw9Z6kHMO3CfCTxX8W8jaiRPtVSBexJqn6THDJlIJp65elkah0TmKl97sMZPmRINq6s3s4V1DI3AcrfJoRzaxONbyVreOOxvFxvgQRV9P501zlQnnsJrukedRUDxsgxK70aLhZH+sxX2f5poJcyg== Received: from HK2APC01FT039.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::48) by HK2APC01HT215.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::331) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Mon, 7 Dec 2020 13:54:36 +0000 Received: from TYAP286MB0185.JPNP286.PROD.OUTLOOK.COM (10.152.248.52) by HK2APC01FT039.mail.protection.outlook.com (10.152.249.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Mon, 7 Dec 2020 13:54:36 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:17757145CCD903AD344B9DC98772E0A8A311C681D5651ED75DD586035DE6A721; UpperCasedChecksum:7FE10561B931EB0C06368D6E59EDC993E4FB28AC7DC37932F0E7EAA46F7BF496; SizeAsReceived:8942; Count:47 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; Mon, 7 Dec 2020 13:54:36 +0000 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: <72dca2daaef417e9fef63e43f16eb76fe215f066.camel@student.tugraz.at> Date: Mon, 07 Dec 2020 21:55:04 +0800 In-Reply-To: <72dca2daaef417e9fef63e43f16eb76fe215f066.camel@student.tugraz.at> (Leo Prikler's message of "Mon, 07 Dec 2020 13:09:05 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [M5g8dEq0CY/HEKOqQqfbpIXJNPBe8EI5u5NUHotrAuOEYadrrsR0w2aN8T2mA6v7] X-ClientProxiedBy: HE1PR0701CA0079.eurprd07.prod.outlook.com (2603:10a6:3:64::23) To TYAP286MB0185.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8038::14) X-Microsoft-Original-Message-ID: <87eek1yb47.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (2409:8a62:372:3600:2f1:f5ff:fe18:6bb) by HE1PR0701CA0079.eurprd07.prod.outlook.com (2603:10a6:3:64::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.7 via Frontend Transport; Mon, 7 Dec 2020 13:54:34 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: ac7858ad-4409-44ed-1873-08d89ab7a1a0 X-MS-TrafficTypeDiagnostic: HK2APC01HT215: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HvmGjcU92E0+XrswEjPKGf4/MW5iWmYwAB0ZEm1HnX5gdW8nP071l1JsFstBbMp7eY93nlbR07/QRYa1T0p6erBz/qpLOwtg+COIg4SVs4eKw/jRhVm47Dun/8XvL+w3zYAHtOeE5QPKtVj80NgieAp0g6PFDzmZFVYBxVrwTpU6nlxa24sTOqIa1FndMg+kkF4wp/DypDFGn6+wqvbsEQ== X-MS-Exchange-AntiSpam-MessageData: f8bdAj3P6uO5J6xU2qQAgwEwK7h2fDdZWCVXKozL40xY+OCF/+XT+RSrnDyPCbgzNo11uYI0Fhzhvzsx7eGvqNDTT/N5YdrU3g+4zJsTcXUSD1a4dXf3qTUb+d79dxoIeG6S1wyVS/HfOGQXpktW7YFsf9f8jB+EL+/s8PPfRh3LVR0dbPdoQnkneGXWz5obZhsEiczB376Y/cTZy+L4kg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac7858ad-4409-44ed-1873-08d89ab7a1a0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2020 13:54:36.3709 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HK2APC01FT039.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: HK2APC01HT215 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=Zaq8C7wc; 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: 5AE769405D4 X-Spam-Score: 0.80 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: gsCyNDBJlD52 Leo Prikler writes: > Hello, =E5=AE=8B=E6=96=87=E6=AD=A6! > > As the author of [1] I might be a bit biased, but I have a few > questions regarding this patch set: Hello, thanks for asking! > 1. Will it correctly pick up IM_MODULE_FILEs at system level if you > also happen to have GTK+ applications installed at user level? Oh, if I have ibus in system profile, and no input methods but GTK+ applications in user profile, then it will be broken, as user's profile was source later in '/etc/profile', replace the IM_MODULE_FILE from system profile. Need more think... > a. What about multi-profile setups, where more than one profile > contains GTK+ applications? Because only a single variable for all gtk+ versions, We can only hope those GTK+ applications from different profiles can accept the same input methods modules, this patch dosen't improve the situation. > b. What about `guix environment`? For `guix environment`, it dosen't load `/etc/profile`, so this have no effect, but maybe we should make it doing so? > 2. Which purpose would sourcing those files offer other than setting > environment variables? What would be permissible actions? Remember, > that those would be executed whenever the user spawns a shell, so while > you could put stuff like `fc-cache -r` in there, I personally think you > ought not to. Sure, for set environment variables, I can't came up with other examples. It's just like support '/etc/profile.d', but there are some packages (for now, only nix I think) that will set environment variables outside of store and profile (NIX_PATH=3D$HOME/.nix-defexpr/channels, etc) which would be difficult for search-paths. I agree with you that profile should not run things that modify files. > > I believe a proper fix for GTK would be to allow setting multiple > IM_MODULE_FILEs instead of a single one and using search paths. Our search paths can be a single file (eg: SSL_CERT_FILE) or mutiple files, but we need to add it to all GTK+ input methods (only ibus and fcitx, but it's like GST_PLUGIN_SYSTEM_PATH every where, not ideal), my point is that set thoses environment varaibles once profile level is better than set them many times each package. If profile hook can contribute to the search-paths of manifest, I'd go for it. So in the end, this may only bring benifits for packages that came up with profile scripts in etc/profile.d, and I need to think more for multiple profiles... Thank you!