From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mJQZI9w/2GJDGAEAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 19:48:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WBAVI9w/2GJTxQAA9RJhRA (envelope-from ) for ; Wed, 20 Jul 2022 19:48:12 +0200 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 20485905B for ; Wed, 20 Jul 2022 19:48:12 +0200 (CEST) Received: from localhost ([::1]:50024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEDnv-0004nl-3g for larch@yhetil.org; Wed, 20 Jul 2022 13:48:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEDnm-0004nd-Ao for bug-guix@gnu.org; Wed, 20 Jul 2022 13:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEDnm-000420-2n for bug-guix@gnu.org; Wed, 20 Jul 2022 13:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEDnl-0002Rs-V6 for bug-guix@gnu.org; Wed, 20 Jul 2022 13:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56661: EMACSLOADPATH not set when using Guix System + Guix Home + SLIM + Mate Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 20 Jul 2022 17:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56661 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos , 56661@debbugs.gnu.org Received: via spool by 56661-submit@debbugs.gnu.org id=B56661.16583392619284 (code B ref 56661); Wed, 20 Jul 2022 17:48:01 +0000 Received: (at 56661) by debbugs.gnu.org; 20 Jul 2022 17:47:41 +0000 Received: from localhost ([127.0.0.1]:58792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEDnQ-0002Pc-LZ for submit@debbugs.gnu.org; Wed, 20 Jul 2022 13:47:41 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEDnI-0002Ok-EZ for 56661@debbugs.gnu.org; Wed, 20 Jul 2022 13:47:39 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 5AC80E0002; Wed, 20 Jul 2022 17:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1658339246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=W4hNZl6f8S1fkV1t6kYuq5Z2KBRF3FoPO3wexsQZ1zU=; b=i979Y0QQzbMLhEGnt80mIpBdEujUC0q1lsFkf5wQ3t+uv42QvvvtlaguciIHH7ShesO6UW VxaO0bh2jEE3pDXaU2s6EIBpgjCfjM7XULhpooS6Ei9nta3Gu40MGZt88QIWIY6P9V+vpA cDXNi/5Zgl9yyJaDJ80vvj5s5Pcqo52/yetJObp88wTYPw+GbqO+KxUQsZTxtsEFqY9Gfl D/axEma/EtYkpXXoWg7Dj6ae3MycwqRvafOFBoEGL9qvxj34V4MbjYgeYKL0/9VSTzrDES ZZ8s1aE4QQbD8ifpEIhSNFeWq/NlhwzjgcNAbrZUrQW7mYx+P2+bvh78vmRx1Q== From: Andrew Tropin In-Reply-To: <5e3f98c8-eeb1-909b-8407-ef55f01a6881@telenet.be> References: <8f5cae4c-a84f-f5e2-d4fa-c60fdbf330cd@telenet.be> <87v8rsoukp.fsf@trop.in> <5e3f98c8-eeb1-909b-8407-ef55f01a6881@telenet.be> Date: Wed, 20 Jul 2022 20:47:21 +0300 Message-ID: <87r12fbrrq.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658339292; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=W4hNZl6f8S1fkV1t6kYuq5Z2KBRF3FoPO3wexsQZ1zU=; b=PGvJsueqpr0tiTp3Fw3iR+ZYYjmuHkgarcIXsr3MNYczQ2nqLzAcq55pcC6Fho8mUFdMNN IKK1yqxbUU9ziI48Xg5nRd2hS+RWQQ5f0jtwNQ0/aIwCAQdktmsLJSjkgmmVihGHf8SdyN hyzqEpU1+3URrzsyQcxuaIlOJhJc01bnEjjVc0niB/K5aq497yzEAA76esopw0S5HvQH9O 1Br6VoXSzPkuYRmE/lh0SIqKCRAYGLo0ovHaBaOBbVRafafT2BJDTdYzZJViSGoTdYtZ9e 4fr+Z0fUHx6TyoPI+O3IIUJDWwZIuDIFC/3tkbS57C5H5qnTZLfD+Y9ZWYGKdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658339292; a=rsa-sha256; cv=none; b=d+QHBqqV0zJJ9K/AAumRxm4aBAkI07j+L7IT8cDD5CZMQIMtSDnu6muCfv1YAaMSCMMan2 RzWOFEBdQg8N+Zyiisf6beDIKYh+X1sucMbPgnBRbxx+/iZtpK95fABDCM5IZ8PlL/zNmd 9vDdU2uDJSorRxvr9DgbVWbdTJqp95KrVXcIYURYxNdPXJKYkVFu8f25pD7s82E+8voi+m ap6qoZLKCyYirnnr9kHdl2MLvg7OwCTcIroUPgVGZ+0h0jpHws8FQDEwQ4vya7zMZ0RKNQ ZyJcON02gCgUQ2d9m7qHrzI8uihW1agC2RrTEvBV1ItLHSKPvVZ0UTJraZDTfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=i979Y0QQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=i979Y0QQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 20485905B X-Spam-Score: 0.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1OYq2XWJ+tN/ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-07-20 14:30, Maxime Devos wrote: > On 20-07-2022 14:08, Andrew Tropin wrote: >> Hi Maxime, >> >> According to the documentation to get all the environment variables set >> correctly you either need to manage your login shell with Guix Home or >> do additional configuration of your shell: >> https://guix.gnu.org/manual/devel/en/html_node/Configuring-the-Shell.html > > I am not using a login shell, though I suppose there might be one under=20 > the hood somewhere (IIRC, and if it hasn't changed, some login managers=20 > are wrapped in Guix System to insert a bash --login in-between). Even if= =20 > I am using a (non-login) shell, there's still an issue: if I start an=20 > application via the graphical things, they don't get all the environment= =20 > variables (I tested this by opening a terminal that starts bash and=20 > doing "echo $EMACSLOADPATH", but that a shell is used for the test seems= =20 > irrelevant here to me). > >> From what I see you manage bash with Guix Home, > I am not. I just keep the default ~/.bash_profile etc that a fresh Guix=20 > System install gave me and the only reason bash_profile things appear in= =20 > the home configuration is because "guix home import" generated that. I'm= =20 > not managing anything, just keeping the defaults. You are ;) Declaring home-bash-service-type in home environment means that Guix Home will generate and install bash configurations, which means you are managing bash configurations with Guix Home. >> so according to the >> source code your bash_profile should look differently from what you've >> posted and must contain `source ~/.profile` in it: > > ~/.bash_profile does contain that line: > > # Set up the system, user profile, and related variables. > # /etc/profile will be sourced by bash automatically > # Set up the home environment profile. > if [ -f ~/.profile ]; then source ~/.profile; fi > > # Honor per-interactive-shell startup file > if [ -f ~/.bashrc ]; then source ~/.bashrc; fi > # Honor per-interactive-shell startup file > if [ -f ~/.bashrc ]; then . ~/.bashrc; fi You can remove your original bash_profile, because it's just duplicates last two lines, Guix Home adds the same content as skeletons provided during system installation and a little more. > > However, .bash_profile (the one from the local-file) does not: > > # Honor per-interactive-shell startup file > if [ -f ~/.bashrc ]; then . ~/.bashrc; fi > > >> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services/shells= .scm#n440 >> >> This line makes your login shell > > I am not using a login shell but a graphical environment -- the only=20 > reason I actually use a shell at all is because I find it more=20 > convenient to open a terminal and type "emacs" than to look in the=20 > graphical desktop thingy for the Emacs icon. Also, I'm not finding Emacs= =20 > here even though in the previous installation of Guix System (GDM + Mate= =20 > IIRC, without Guix Home but with "guix install ...".=C2=A0 Icedove isn't= =20 > appearing there either, though the browser is. > > I recall that it login shells were not necessary on Guix System +=20 > ~/.guix-profile (without Guix Home), at least for the desktop=20 > environment combination I used back then, though it was required on my=20 > Debian system to do "bash --login".=C2=A0 I can do "bash --login" on my G= uix=20 > System + Guix Home setup to start a login shell, but that would be a=20 > regression. > I'm not sure how your login/display manager works, but for X11 session sourcing ~/.profile from ~/.xsession should do the trick. Put the following content to your ~/.xsession: =2D-8<---------------cut here---------------start------------->8--- . ~/.profile =2D-8<---------------cut here---------------end--------------->8--- Or add the following service to your home environment: =2D-8<---------------cut here---------------start------------->8--- (simple-service 'xsession-init-file home-files-service-type `((".xsession" ,(plain-file "xsession" ". ~/.profile")))) =2D-8<---------------cut here---------------end--------------->8--- >> source .profile, which sources >> setup-environment, which sources ~/.guix-home/profile/etc/profile, which >> sets EMACSLOADPATH. >> >> Additionally, I've built the home environment you provided and it >> contains the code I mentioned above. >> >> Make sure that ~/.bash_profile and ~/.guix-home/files/.bash_profile >> point to the same file in the store. > > antipode@antipode ~$ ls -l .bash_profile > lrwxrwxrwx 1 antipode users 56 19 jul 22:14 .bash_profile ->=20 > /gnu/store/1cq87qf8zccxlnkjwifcyhawmxvy7wfw-bash_profile > > antipode@antipode ~$ ls -l ~/.guix-home/files/.bash_profile > lrwxrwxrwx 1 root root 56=C2=A0 1 jan=C2=A0 1970=20 > /home/antipode/.guix-home/files/.bash_profile ->=20 > /gnu/store/1cq87qf8zccxlnkjwifcyhawmxvy7wfw-bash_profile > > They do.=C2=A0 Also, shouldn't ~/.bash_profile point to=20 > ~/.guix-home/files/.bash_profile instead of directly to the store, to be= =20 > more atomic (unrelated to #56661 though), like done for symlinks in /etc= =20 > in Guix System? No. Activation is not atomic process anyway. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmLYP6kACgkQIgjSCVjB 3rBMLA/+MSPqmjRtatqADCj7R5byN2Dt0/Lz4dJsg0VFALl/WLTSyUil89GVFfTz bUa5ob6fpwnNQGBw2XVRekdee9ke5fQEhAMrgtY3841U7ghQmZvBTQU/ORQGMdq8 rTqZ2XUOOvLnrw0KXwAcZCtEWL3CdhY4N9FZ2IWnBoOtisM8K/VGZemvvzzqTgjI U14SFUQO1M4zO4bDAN5mb3HnOc1a+Soz1N4ETk2LbrI/vgQJLAFY5790SgqwtZdu vQDiVkzIkY8fIekuK7xI4foUC51/lc79V7dThYsYIL5CCNZUWfJrsdavL1gVFe5u 1ujayjsfBEvLtzIrWx5ZINSRO6cUGvo2WoV0eiOb/UIKd8KxFTfJQGCafE9zVS10 J92ZjHt5RpKLjghfsnijEJDsFdUEnLdTeqH53ewKpEx4fnJk9Voo1aMrMT36/D/5 eY8FC4gE+JrFkpLBSh0r/ec0k8+Mu00T0D6wjzIvh3yVnRLKnu4eF5Da+rJr4Qv2 oQF9GCiLzVkTEgVnxZBWxsfVv4vCJiCwJhk2IIdJyMQO6xdkTNEZI9oob0BDK5HW slds2SmPaApcFY1XSCwgQTqaxNtAgavFDPc3Xj/5Rjg3sEt72NlY8G/ZteF20y/3 X2EPQGVuRiVeunJ0r3oLP4tuj75dszx0bpIpypcLRYj5OkqpvDQ= =POMn -----END PGP SIGNATURE----- --=-=-=--