Sample Header Ad - 728x90

Sway's dmenu not finding $PATH

1 vote
0 answers
885 views
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.sh using chown to my user - created .bashrc, .bash_profile, .profile, .xprofile, .xinitrc, .session, .xsesson with 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, printenv shows the correct PATH - From the terminal, screenshot.sh works from any path - From dmenu, echo $PATH > /tmp/path is missing the additional PATH - From dmenu, echo $SHELL > /tmp/shell shows /bin/bash - From dmenu, who > /tmp/who shows it as my user - Copying screenshot.sh to /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?
Asked by andrewjamesbowen (141 rep)
Mar 8, 2023, 04:05 AM
Last activity: Mar 8, 2023, 10:06 PM