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

Improve user home detection #36

Open
jordeu opened this issue Dec 21, 2021 · 1 comment
Open

Improve user home detection #36

jordeu opened this issue Dec 21, 2021 · 1 comment
Milestone

Comments

@jordeu
Copy link
Member

jordeu commented Dec 21, 2021

Description

On some environments the user home it is not correctly discovered and it returns a ? instead of the real path. We can use the same approach already implemented to detect the user, first check if HOME environment variable exists, otherwise fallback to System.getProperty("user.home").

Example

$ ./tw-agent 8e2e618d-2bc2-4d82-8e20-407ce0db6c08
11:16:46.738 INFO - Established active environments: [cli]
11:16:46.753 ERROR- The work directory '?/work' do not exists. Create it or provide a different one using '--work-dir'.

NOTE: A non-static linked version of tw-agent do not have this problem.

@jordeu jordeu added this to the v0.5 milestone Apr 19, 2022
@jordeu jordeu modified the milestones: v0.5, v0.6 Jul 27, 2022
@jordeu
Copy link
Member Author

jordeu commented Aug 1, 2022

Related issue #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant