From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2JHeET7w8V+tUQAA0tVLHw (envelope-from ) for ; Sun, 03 Jan 2021 16:26:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yP91DT7w8V9xHQAAB5/wlQ (envelope-from ) for ; Sun, 03 Jan 2021 16:26:38 +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 818CD9403CB for ; Sun, 3 Jan 2021 16:26:37 +0000 (UTC) Received: from localhost ([::1]:50760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw6DD-00065h-44 for larch@yhetil.org; Sun, 03 Jan 2021 11:26:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw53V-00053v-QQ for help-guix@gnu.org; Sun, 03 Jan 2021 10:12:31 -0500 Received: from mout02.posteo.de ([185.67.36.66]:60325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw53S-0002oG-68 for help-guix@gnu.org; Sun, 03 Jan 2021 10:12:29 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 6E5E42400FD for ; Sun, 3 Jan 2021 16:12:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1609686741; bh=9Qlezko4cq68P2v9HHkCv0TwoEG6veRIuSAzRZeZ9No=; h=Subject:To:From:Date:From; b=JfFA0fVF8R4uK9dqsoRX7xkZR0hSIddqcH8nsoL4P8D85ic3H3LbGWtGe/G3t8JZ+ abw7V6KdXIlU17UzSZRYqCCn0jeSDK9nQryElmZTZywTG4TRxJLGpZh6PS2Yo53Aap YIIH5K/TlVC/oa7Lr8GlUiFnd/3Hp6CJ52NB4SSu/bWCTFf5Hkb/227BnkZqJpUF7s diFy08IzMyaOpBJ7X8BXuxQ2LCS5IJM+lP4gys52RBjJvJKYKBKwq4nCRlgZ5p88u7 IYGe24GgazEgVavk5kSbwG2R6KLPfUm2i4URF/MA7suwoEtD8SkSve4feEB2dlOt5+ 39nWon5gBEjdg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D82LD5tBZz6tmH; Sun, 3 Jan 2021 16:12:20 +0100 (CET) Subject: Re: EXWM: file or program not found, ls To: Pierre Neidhardt , help-guix@gnu.org References: <48099c1e-63b9-d252-bb48-8c11f90a45ee@posteo.net> <87pn2nmnho.fsf@ambrevar.xyz> From: Olivier Rojon Message-ID: <6095678d-f42e-c14f-8593-7073c73e4def@posteo.net> Date: Sun, 3 Jan 2021 16:12:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.0 MIME-Version: 1.0 In-Reply-To: <87pn2nmnho.fsf@ambrevar.xyz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=o.rojon@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 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, NICE_REPLY_A=-0.262, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 03 Jan 2021 11:26:23 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JfFA0fVF; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 818CD9403CB X-Spam-Score: -3.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5+GPl6wfQH9i Hej, my login shell is bash, and I have edited it. Yet, adding the lines you have provided did not really help the issue. I have now written an .xsession file which looks like this: --8<---------------cut here---------------start------------->8---  #!/usr/bin/env bash . /etc/profile & . ~/.bashrc & exec exwm --8<---------------cut here---------------end--------------->8--- Unfortunately, this did not do the trick. There's two things I suspect to be a possible culprit which I am about to change: - I had manually defined PATH in .bashrc, which I believe might have overriden other attempts at defining it (even though it contains :$PATH at the end) - I did what is sometimes advised when you install a package, that you should add the following lines to your shell: --8<---------------cut here---------------start------------->8--- GUIX_PROFILE="/home/hapster/.guix-profile" . "$GUIX_PROFILE/etc/profile" --8<---------------cut here---------------end--------------->8--- However, I had not added an "export" in front of "GUIX_PROFILE", which might be part of the problem. But as you can see, I am kind of struggling to find the cause of the problem. ;-) On 02.01.21 15:17, Pierre Neidhardt wrote: > Hi Olivier, > > What's your login shell? If it's Bash, did you edit ~/.bashrc by any chance? > > The default file contains this snippet: > > --8<---------------cut here---------------start------------->8--- > if [[ $- != *i* ]] > then > # We are being invoked from a non-interactive shell. If this > # is an SSH session (as in "ssh host command"), source > # /etc/profile so we get PATH and other essential variables. > [[ -n "$SSH_CLIENT" ]] && source /etc/profile > > # Don't do anything else. > return > fi > > # Source the system-wide file. > source /etc/bashrc > --8<---------------cut here---------------end--------------->8--- > > You need to source /etc/profile if you want the environment variables > like PATH to be set properly. > > You can do this from ~/.bashrc as is done in the snippet, or from other > files such ~/.profile or ~/.xinitrc. > > Hope that helps! >