unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Olivier Rojon <o.rojon@posteo.net>, help-guix@gnu.org
Subject: Re: EXWM: file or program not found, ls
Date: Sat, 02 Jan 2021 15:17:55 +0100	[thread overview]
Message-ID: <87pn2nmnho.fsf@ambrevar.xyz> (raw)
In-Reply-To: <48099c1e-63b9-d252-bb48-8c11f90a45ee@posteo.net>

[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

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!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

  reply	other threads:[~2021-01-02 14:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-31 12:41 EXWM: file or program not found, ls Olivier Rojon
2021-01-02 14:17 ` Pierre Neidhardt [this message]
2021-01-03 15:12   ` Olivier Rojon
2021-01-03 16:21     ` Pierre Neidhardt
2021-02-06 13:47       ` Olivier Rojon
2021-01-02 21:56 ` Vladimir Sedach
2021-01-06  0:18 ` Gary Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pn2nmnho.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=help-guix@gnu.org \
    --cc=o.rojon@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).