[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EXWM: file or program not found, ls
From: |
Olivier Rojon |
Subject: |
Re: EXWM: file or program not found, ls |
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 |
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!