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

envPaths('app').temp get its wrong, suggests nonexistent parent dir #18

Closed
mikelpr opened this issue Oct 19, 2022 · 1 comment
Closed

Comments

@mikelpr
Copy link

mikelpr commented Oct 19, 2022

it suggests /tmp/$USER/app-nodejs, but /tmp/${USER} doesn't exist on openSUSE nor Fedora and $XDG_RUNTIME_DIR would be more appropriately the user specific temp dir and should be defined by now on pretty much all Linux distros

@sindresorhus
Copy link
Owner

it suggests /tmp/$USER/app-nodejs, but /tmp/${USER} doesn't exist on openSUSE nor Fedora

I don't think it exists on any Linux distribution. This package does not guarantee the directory exists. It standardises on good places to store stuff cross-platform. The username is included in the path for uniqueness.

Applications should use this directory for communication and synchronization purposes and should not place larger files in it, since it might reside in runtime memory and cannot necessarily be swapped out to disk.

This is problematic as you can put any sized files in a normal temporary directory.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024
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

2 participants