Skip to content

node-triton#290 Use XDG_CONFIG_HOME if set#309

Merged
bahamat merged 1 commit intomasterfrom
issue-290
Feb 1, 2021
Merged

node-triton#290 Use XDG_CONFIG_HOME if set#309
bahamat merged 1 commit intomasterfrom
issue-290

Conversation

@bahamat
Copy link
Copy Markdown
Contributor

@bahamat bahamat commented Feb 1, 2021

No description provided.

Copy link
Copy Markdown
Contributor

@twhiteman twhiteman left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple of tweaks please.

@bahamat
Copy link
Copy Markdown
Contributor Author

bahamat commented Feb 1, 2021

Thanks for catching those. Fixed.

@bahamat bahamat merged commit 304725b into master Feb 1, 2021
@bahamat bahamat deleted the issue-290 branch February 1, 2021 18:44
@bahamat
Copy link
Copy Markdown
Contributor Author

bahamat commented Feb 1, 2021

Fixes #290

*/
CLI_CONFIG_DIR = mod_path.resolve(process.env.APPDATA, 'Joyent', 'Triton');
} else if (process.env.XDG_CONFIG_HOME) {
CLI_CONFIG_DIR = mod_path.resolve(process.env.XDG_CONFIG_HOME, '.triton');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just noticed this while testing with my XDG setup, this should be

CLI_CONFIG_DIR = mod_path.resolve(process.env.XDG_CONFIG_HOME, 'triton');

without the ., because .config is the hidden XDG_CONFIG_HOME directory usually, then all sub-directories get non-hidden names.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can you file an issue for this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sure will do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the quick response

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