Skip to content

Set XDG_CONFIG_HOME env on Linux when not set. #1288

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

Merged
merged 1 commit into from
Aug 4, 2022
Merged

Set XDG_CONFIG_HOME env on Linux when not set. #1288

merged 1 commit into from
Aug 4, 2022

Conversation

kittaakos
Copy link
Contributor

Motivation

Set the XDG_CONFIG_HOME env on Linux when not set. Otherwise, node-log-rotate creates a folder with the undefined name.

Change description

Patched the patched main.js for the Theia backend. 🤦

Other information

Closes #394.

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

Otherwise, `node-log-rotate` creates a folder with `undefined` name.

Closes #394.

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos requested review from umbynos and AlbyIanna August 4, 2022 12:05
@kittaakos kittaakos added topic: code Related to content of the project itself os: linux Specific to Linux operating system type: imperfection Perceived defect in any part of project labels Aug 4, 2022
@@ -1,4 +1,18 @@
// @ts-check

// Patch for on Linux when `XDG_CONFIG_HOME` is not available, `node-log-rotate` creates the folder with `undefined` name.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove on

@umbynos
Copy link

umbynos commented Aug 4, 2022

This seems to be solved. The log are created now under ~/.config dir

@kittaakos
Copy link
Contributor Author

Great news, thank you for the verification. I am merging this.

@kittaakos kittaakos merged commit 0b33b51 into main Aug 4, 2022
@kittaakos kittaakos deleted the #394 branch August 4, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: linux Specific to Linux operating system topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Starting IDE creates "undefined" folder in current directory
2 participants