Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 .local/bin folder missing from PATH #764

Open
dinkocar opened this issue Apr 8, 2024 · 11 comments
Open

馃悰 .local/bin folder missing from PATH #764

dinkocar opened this issue Apr 8, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@dinkocar
Copy link

dinkocar commented Apr 8, 2024

branch

stable

Architecture

x86_64

Description

I have noticed that my $HOME/.local/bin folder is missing from path (since recently, I am not sure about exact time when it disappeared.) When I manually source /etc/profile.d/home-local-bin.sh it works. But I didn't have to do this manually. Also other functionality in /etc/profile.d might be effected, I haven't checked.

Reproduction steps

Create $HOME/.local/bin folder if it is missing
logout/login or reboot
$HOME/.local/bin sholuld be in $PATH but it is not.

Screenshots

No response

Logs

No response

@dinkocar dinkocar added the bug Something isn't working label Apr 8, 2024
@boredland
Copy link
Member

I think for that to work, we'd have to start foot as a login-shell, which caused other problems. But some things may have changed and probably we could give it another try (original issue: #721)

@dinkocar
Copy link
Author

dinkocar commented Apr 8, 2024

This is not only foot related. I have some sway bindings that call some scripts from my local bin folder (I don't use full path, just script name), and they don't work also.

@boredland
Copy link
Member

Probably we just need to start sway from a login-shell then. Will do a little experiment.

boredland added a commit to manjaro-sway/desktop-settings that referenced this issue Apr 8, 2024
boredland added a commit to manjaro-sway/desktop-settings that referenced this issue Apr 8, 2024
@boredland
Copy link
Member

Would you like to give manjaro-sway-settings-git a try?

@dinkocar
Copy link
Author

dinkocar commented Apr 8, 2024

My shortcuts are working, but still no local bin folder in PATH in foot.

@boredland
Copy link
Member

Could you share your /etc/profile.d/home-local-bin.sh?

@dinkocar
Copy link
Author

dinkocar commented Apr 8, 2024

Sure, here it is:

case ":${PATH}:" in
:"$HOME/.local/bin":) ;;
*) export PATH="$HOME/.local/bin:$PATH" ;;
esac

And /etc/profile.d/home-local-bin.sh is owned by filesystem 2024.01.19-1

@boredland
Copy link
Member

boredland commented Apr 8, 2024

is that posix? I did just use sh, not bash or zsh to load sway (as I didn't want to put assumptions on what people use, but perhaps we could also use $SHELL, if $SHELL -l works for all of them?)

@dinkocar
Copy link
Author

dinkocar commented Apr 8, 2024

I have no idea what that is. I have not used posix. It comes from core/filesystem package, and I guess it is installed in all Manjaro installations.

@boredland
Copy link
Member

Well - I guess it is posix compatible. I switched to using the $SHELL-variable anyway.

@boredland
Copy link
Member

Seems that service unit never came to a final conclusion regarding /etc/profile and honestly I am on the fence here, as I personally don't even use it, but I know this caused issues in that past.

xdbob/sway-services#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants