I recently installed EndeavourOS, followed by Sway
I've added ~/scripts/screenshot.sh however dmenu is not finding it, so tried adding ~/scripts to my path environment however none of my approaches are adding it for dmenu
Since then I've:
- set permission with
chmod 777 ~/scripts/screenshot.sh - ensured ownership of
screenshot.shusingchownto my user - created
.bashrc,.bash_profile,.profile,.xprofile,.xinitrc,.session,.xsessonwith the $PATH to include the scripts folder (I know a lot of these are redundant but they were all the files I found from other posts with same issue) - if I add/update a config, before a reboot I do
rm -f ~/.cache/dmenu_run(there's no other dmenu file)
Debugging steps
- From the terminal,
printenvshows the correct PATH - From the terminal,
screenshot.shworks from any path - From dmenu,
echo $PATH > /tmp/pathis missing the additional PATH - From dmenu,
echo $SHELL > /tmp/shellshows/bin/bash - From dmenu,
who > /tmp/whoshows it as my user - Copying
screenshot.shto/usr/bin, which is in the $PATH, dmenu found it and it worked
My understanding is dmenu is running a different shell but I don't know why it's not picking up any of my config files (e.g. .bashrc, .bash_profile, etc.)
What else can I check or do?
bash if [ -d "$HOME/scripts" ] ; then PATH="$HOME/scripts:$PATH" fi