From debbugs-submit-bounces@debbugs.gnu.org Tue May 04 07:37:32 2021 Received: (at submit) by debbugs.gnu.org; 4 May 2021 11:37:32 +0000 Received: from localhost ([127.0.0.1]:52694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldtMq-0004Z7-Cy for submit@debbugs.gnu.org; Tue, 04 May 2021 07:37:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:58044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldtMo-0004Z1-M3 for submit@debbugs.gnu.org; Tue, 04 May 2021 07:37:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldtMo-0004g6-Fb for bug-guix@gnu.org; Tue, 04 May 2021 07:37:30 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:17783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldtMl-0007YO-4F for bug-guix@gnu.org; Tue, 04 May 2021 07:37:29 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FZHrH179lz1LB1y for ; Tue, 4 May 2021 13:37:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4FZHrH179lz1LB1y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620128239; bh=eidWOKBB0risDTMT59+vmqZsNNvbqwDrn10OB7akHuA=; h=Subject:From:To:Date:From; b=Vt3tjTxuBwvL4ihpb0V1lR2PvHiW8huuEv6Ov2h3NCPQUAEirNxPxXCe+KiVO40qP q/50YmTWcKaRHNBwMPLnEUDDcBEGa9Mbly5B9ZMU+AAXarT14mAX3V2p27QIfvh8vo mWeoar/rcPd5heaBh7FSBCMwksQtGz+JWEDQykKs= Message-ID: <42353788fa03581cdb87da7d1fdea1c8cf0a0682.camel@student.tugraz.at> Subject: EXWM knows nothing about Guix profiles From: Leo Prikler To: bug-guix@gnu.org Date: Tue, 04 May 2021 13:37:18 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi Guix, I just recently helped someone debug an issue they encountered when using EXWM. It turned out their EMACSLOADPATH was set to "/run/current-system/profile/share/emacs/site- lisp:/gnu/store/1zszglsxl4zxy9alcwxjwj26d30qmyv9-emacs- 27.2/share/emacs/27.2/lisp" – quite notably, "$HOME/share/emacs/site- lisp" was missing. I think the launcher that we install in the install-xsession does not do sufficient work to set up the environment variables of the session appropriately. In particular, I think it should source /etc/profile prior to running Emacs. WDYT? From debbugs-submit-bounces@debbugs.gnu.org Fri May 07 15:20:24 2021 Received: (at 48223) by debbugs.gnu.org; 7 May 2021 19:20:24 +0000 Received: from localhost ([127.0.0.1]:45511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lf61M-0002CB-52 for submit@debbugs.gnu.org; Fri, 07 May 2021 15:20:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lf61I-0002Bz-UF for 48223@debbugs.gnu.org; Fri, 07 May 2021 15:20:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49110) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lf61C-0004lM-FD; Fri, 07 May 2021 15:20:10 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=33184 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lf613-0000Qk-KQ; Fri, 07 May 2021 15:20:01 -0400 From: janneke@gnu.org To: Leo Prikler Subject: Re: bug#48223: EXWM knows nothing about Guix profiles In-Reply-To: <42353788fa03581cdb87da7d1fdea1c8cf0a0682.camel@student.tugraz.at> (Leo Prikler's message of "Tue, 04 May 2021 13:37:18 +0200") Date: Fri, 07 May 2021 21:15:17 +0200 Message-ID: <875yzuwe2i.fsf@gnu.org> References: <42353788fa03581cdb87da7d1fdea1c8cf0a0682.camel@student.tugraz.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48223 Cc: 48223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Leo Prikler writes: Hello Leo, > I just recently helped someone debug an issue they encountered when > using EXWM. It turned out their EMACSLOADPATH was set to > "/run/current-system/profile/share/emacs/site- > lisp:/gnu/store/1zszglsxl4zxy9alcwxjwj26d30qmyv9-emacs- > 27.2/share/emacs/27.2/lisp" =E2=80=93 quite notably, "$HOME/share/emacs/s= ite- > lisp" was missing. Wow, I just hit this problem too. Your message helped me finding the problem right away. My system which includes EXWM was still at emacs-27.1, while I upgraded my profile to emacs-27.2. > I think the launcher that we install in the install-xsession does not > do sufficient work to set up the environment variables of the session > appropriately. In particular, I think it should source /etc/profile > prior to running Emacs. > > WDYT? I think this is a very good idea. Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From debbugs-submit-bounces@debbugs.gnu.org Sat May 08 04:56:34 2021 Received: (at 48223) by debbugs.gnu.org; 8 May 2021 08:56:34 +0000 Received: from localhost ([127.0.0.1]:48945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfIlC-00028S-B6 for submit@debbugs.gnu.org; Sat, 08 May 2021 04:56:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfIl8-00028J-88 for 48223@debbugs.gnu.org; Sat, 08 May 2021 04:56:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55240) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfIl0-00085I-Ao; Sat, 08 May 2021 04:56:18 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=60540 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfIkz-0003Gc-Hk; Sat, 08 May 2021 04:56:17 -0400 From: Jan Nieuwenhuizen To: Leo Prikler Subject: Re: bug#48223: EXWM knows nothing about Guix profiles Organization: AvatarAcademy.nl References: <42353788fa03581cdb87da7d1fdea1c8cf0a0682.camel@student.tugraz.at> <875yzuwe2i.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Sat, 08 May 2021 10:56:15 +0200 In-Reply-To: <875yzuwe2i.fsf@gnu.org> (janneke@gnu.org's message of "Fri, 07 May 2021 21:15:17 +0200") Message-ID: <875yzt7geo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48223 Cc: 48223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain > Leo Prikler writes: Hello again, >> I think the launcher that we install in the install-xsession does not >> do sufficient work to set up the environment variables of the session >> appropriately. In particular, I think it should source /etc/profile >> prior to running Emacs. >> >> WDYT? > > I think this is a very good idea. To follow-up on this: at first glance sourcing /etc/profile seemed to fix my problem. However, I am calling some scripts from Emacs that need my ~/.bash_profile to be sourced too. So this got me wondering, something has definately changed here. Before, this used to work OOTB. Any ideas what may have changed? BTW, I only tested with slim --8<---------------cut here---------------start------------->8--- (service slim-service-type (slim-configuration (auto-login? #t) (allow-empty-passwords? #t) (default-user "janneke") ;;(auto-login-session (file-append emacs-exwm "/bin/exwm")) (auto-login-session "/home/janneke/bin/exwm") (xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout) (server-arguments '("-listen" "tcp")))))))) --8<---------------cut here---------------end--------------->8--- and now use the attached exwm, which works OK for me. Greetings, Janneke --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=exwm Content-Transfer-Encoding: base64 IyEgL3Vzci9iaW4vZW52IGJhc2gKCiMgc291cmNlIC9ldGMvcHJvZmlsZQpzb3VyY2UgL2hvbWUv amFubmVrZS8uYmFzaF9wcm9maWxlCgpleHBvcnQgRVhXTT1qYW5uZWtlCgp4aG9zdCArU0k6bG9j YWx1c2VyOiRVU0VSCmRidXMtbGF1bmNoIGVtYWNzICIkQCIgLS1ldmFsICcoY29uZCAoKGZpbGUt ZXhpc3RzLXAgIn4vLmV4d20iKSAobG9hZC1maWxlICJ+Ly5leHdtIikpICgobm90IChmZWF0dXJl cCAocXVvdGUgZXh3bSkpKSAocmVxdWlyZSAocXVvdGUgZXh3bSkpIChyZXF1aXJlIChxdW90ZSBl eHdtLWNvbmZpZykpIChleHdtLWNvbmZpZy1kZWZhdWx0KSAobWVzc2FnZSAoY29uY2F0ICJleHdt IGNvbmZpZ3VyYXRpb24gbm90IGZvdW5kLiAiICJGYWxsaW5nIGJhY2sgdG8gZGVmYXVsdCBjb25m aWd1cmF0aW9uLi4uIikpKSknIAo= --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 08 05:26:35 2021 Received: (at 48223) by debbugs.gnu.org; 8 May 2021 09:26:35 +0000 Received: from localhost ([127.0.0.1]:49067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfJEJ-0002OP-5a for submit@debbugs.gnu.org; Sat, 08 May 2021 05:26:35 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:52419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfJEG-0002OJ-TD for 48223@debbugs.gnu.org; Sat, 08 May 2021 05:26:34 -0400 Received: from [10.0.0.4] (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FchlT1Zdfz3xnR; Sat, 8 May 2021 11:26:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620465989; bh=1UlCcNVam5D/7ofHsts7OjBskuswC+BEiV0bC6M98G0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=UnxwGE5GX9HdFpG9gVaGUHx3aQgJDe+8j3iXFIoJRTtFCpcX93DJFR2hKSdv2t9Oc VCOrgul5r2eRFpEoidVCAtFNeQxQ/vWmSxp8OI3U9iYfyz17l+rbQEjIegDcgMfhR2 E4UwT7bY6oy1ofNXsQ4IuwZbsScj4Tm/RDROc+64= Message-ID: <4112dadd777b8e2eb86d7b871b35971a4666619e.camel@student.tugraz.at> Subject: Re: bug#48223: EXWM knows nothing about Guix profiles From: Leo Prikler To: Jan Nieuwenhuizen Date: Sat, 08 May 2021 11:26:03 +0200 In-Reply-To: <875yzt7geo.fsf@gnu.org> References: <42353788fa03581cdb87da7d1fdea1c8cf0a0682.camel@student.tugraz.at> <875yzuwe2i.fsf@gnu.org> <875yzt7geo.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48223 Cc: 48223@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Am Samstag, den 08.05.2021, 10:56 +0200 schrieb Jan Nieuwenhuizen: > > Leo Prikler writes: > > Hello again, > > > > I think the launcher that we install in the install-xsession does > > > not > > > do sufficient work to set up the environment variables of the > > > session > > > appropriately. In particular, I think it should source > > > /etc/profile > > > prior to running Emacs. > > > > > > WDYT? > > > > I think this is a very good idea. > > To follow-up on this: at first glance sourcing /etc/profile seemed to > fix my problem. However, I am calling some scripts from Emacs that > need > my ~/.bash_profile to be sourced too. I don't think sourcing ~/.bash_profile will be portable. As a zsh user, I'm putting stuff in .zprofile instead, so all my hacks will be obsoleted if we start mandating bash_profile. The "portable" alternative, that is $HOME/.profile does not exist in our current skeletons. Putting this aside, I think it'd also be possible to duplicate whatever settings you might have put into ~/.bash_profile in ~/.exwm. > So this got me wondering, something has definately changed here. > Before, this used to work OOTB. Any ideas what may have changed? One thing, that changed is Emacs itself. In particular, we reverted to ELPA sub-directories for structure, but keeping a hopefully backwards- compatible hack in subdirs.el However, I doubt, that this is the only thing making a difference between now and then. Since EMACSLOADPATH is wrong, it would seem, that there is no profile evaluation whatsoever going on, and I'd argue this has already been the case before, I just don't know when it changed or whether things just happened to work "OOTB" despite this. I also think, that any session should be run under the user's shell with --login. As far as I can tell, that happens for GNOME under GDM – executing getenv for a variable that I only set in my .zprofile I see the correct value – why does it not happen for EXWM under slim? Greetings, Leo