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

Fix error when xdgBasedir.data or any of its parents don't exist #366

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

triallax
Copy link
Contributor

Fixes #364.

// Create `xdgBasedir.data` if it doesn't already exist.
// See https://github.com/sharkdp/insect/issues/364.
try {
fs.mkdirSync(xdgBasedir.data, { recursive: true });
Copy link
Contributor Author

@triallax triallax Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we maybe change the permissions of xdgBasedir.data on creation to make it non-world-accessable? It could be argued that that's not Insect's responsibility though.

Edit: leaving as-is, not Insect's responsibility.

@triallax triallax merged commit 0f422e5 into sharkdp:master Mar 10, 2023
@triallax triallax deleted the fix-364 branch March 10, 2023 21:30
@sharkdp
Copy link
Owner

sharkdp commented Mar 12, 2023

Thank you

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.

Insect shows errors if xdgBasedir.data or any of its parents don't exist
2 participants