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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$PATH variable do not include "$HOME/.local/bin" path #3356

Closed
eduardomozart opened this issue Aug 3, 2022 · 3 comments
Closed

$PATH variable do not include "$HOME/.local/bin" path #3356

eduardomozart opened this issue Aug 3, 2022 · 3 comments
Labels
bug | functional behavior bug | 功能行为的
Milestone

Comments

@eduardomozart
Copy link

SUMMARY | 问题概要

Hello,
I noticed that the Deepin has a "$HOME/.profile" file that attempts to add the "$HOME/.local/bin" folder to the $PATH variable if the path "$HOME/.local/bin" exists, but it doesn't seems to be added to my system, so I had to edit the "$HOME/.bashrc" file directly to append the "$HOME/.local/bin" directory to the path variable so I can run the executables that I compiled manually through Terminal to my actual user just calling it's executable name instead of it's full path.

STEPS TO REPRODUCE | 复现步骤

Compile an application locally (sample: rafatosta/zapzap#76).

OBSERVED RESULT | 观察到的结果

When I run the executable through Terminal I have to specify full path ($HOME/.local/bin/zapzap) instead of executable name only (zapzap).

EXPECTED RESULT | 期望的结果

I have to run the executable through the full path manually or append the "$HOME/.local/bin" to $PATH by editing the file "$HOME/.bashrc" directly.

SOFTWARE/OS VERSIONS | 软件/系统版本信息

Distribution: Deepin 20.6

ADDITIONAL INFORMATION | 额外补充

Please let me know if any more information are needed.

@BLumia
Copy link
Member

BLumia commented Aug 3, 2022

Related: #2368
Should be fixed in: linuxdeepin/startdde#107 (no tag release yet so hopefully should be in the next release)

@BLumia BLumia added the bug | functional behavior bug | 功能行为的 label Aug 3, 2022
@BLumia BLumia added this to the 20.7 milestone Aug 3, 2022
@BLumia
Copy link
Member

BLumia commented Aug 3, 2022

Added to the 20.7 milestone. Closing, thanks again for the bug report :)

@BLumia BLumia closed this as completed Aug 3, 2022
@eduardomozart
Copy link
Author

eduardomozart commented Aug 3, 2022

Hello @BLumia, I added the fix manually to the /etc/X11/Xsessions.d/01deepin-profile and it works just fine. I removed my customization from $HOME/.bashrc file. Thanks!
My only worry is that the $HOME/.profile seems to call $HOME/.bashrc file, but it's already executed elsewhere (as I was using it to append the $HOME/.local/bin directory to the $PATH and it was working), so I believe that the $HOME/.bashrc file will be executed twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug | functional behavior bug | 功能行为的
Projects
None yet
Development

No branches or pull requests

2 participants