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

chore: Change default windows working directory to the "C:\ProgramData\Amazon" #63

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

Honglichenn
Copy link
Contributor

@Honglichenn Honglichenn commented Jan 30, 2024

What was the problem/requirement? (What/Why)

Before this change, the default path is generated by gettempdir(), which is returning a temporary directory within the current user's profile. For example, C:\Users\UserA\AppData\Local\Temp\
That's undesirable because that means that in the cross-user case we're giving a 2nd user access to a directory within the 1st user's profile.

What was the solution? (How)

Change the default tmp dir to the C:\ProgramData\Amazon

What is the impact of this change?

Default tmp dir will be changed to the C:\ProgramData\Amazon

How was this change tested?

A new integration test is added.

Was this change documented?

No

Is this a breaking change?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

src/openjd/sessions/_tempdir.py Outdated Show resolved Hide resolved
@Honglichenn Honglichenn force-pushed the honglich/tmp_dir branch 2 times, most recently from 387b299 to 334dca0 Compare January 31, 2024 00:05
@ddneilson ddneilson merged commit 36263d3 into mainline Jan 31, 2024
15 checks passed
@ddneilson ddneilson deleted the honglich/tmp_dir branch January 31, 2024 17:40
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

Successfully merging this pull request may close these issues.

3 participants