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

Change .tmp file directory #685

Open
valoq opened this issue Jul 7, 2024 · 2 comments
Open

Change .tmp file directory #685

valoq opened this issue Jul 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@valoq
Copy link

valoq commented Jul 7, 2024

When decompressing an archive, ouch will temporarily create a directory named .tmpXXXXXX (X = random char)
It may be better to use a path in XDG_DATA_HOME or a more specific path name to make sure no file conflicts occur.
A collision with a different application using the same path may be unlikely with 6 random characters, but this seems to be easy to avoid entirely.

@valoq valoq added the enhancement New feature or request label Jul 7, 2024
@valoq valoq changed the title Move .tmp files Change .tmp file directory Jul 7, 2024
@marcospb19
Copy link
Member

I think calling it something like .ouch-tmp-XXXXXX could be enough for collisions, and more informative for users too.

Although, I don't know of any application that names things like we currently do.

@marcospb19
Copy link
Member

Thanks for the suggestion! Will take a look for sure.

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

No branches or pull requests

2 participants