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

Search for stalonetrayrc under $XDG_CONFIG_HOME #1

Closed
astier opened this issue Jan 30, 2021 · 2 comments
Closed

Search for stalonetrayrc under $XDG_CONFIG_HOME #1

astier opened this issue Jan 30, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@astier
Copy link

astier commented Jan 30, 2021

Thank you for stalonetray. I have one feature-request. I would like to store my stalonetrayrc in ~/.config which is defined by $XDG_CONFIG_HOME. It would be great if stalonetray would automatically search for stalonetrayrc under $XDG_CONFIG_HOME/stalonetrayrc.

@kolbusa
Copy link
Owner

kolbusa commented Jan 30, 2021

Hi. Thanks for the report. Which one do you think should take precedence: $HOME/.stalonetrayrc or $XDG_CONFIG_HOME/stalonetrayrc? IMO the existing behavior should continue to be the default, and $XDG_CONFIG_HOME/stalonetrayrc would be checked for if $HOME/.stalonetrayrc does not exist. If $XDG_CONFIG_HOME is not set, then stalonetray would check for $HOME/.config/stalonetrayrc.

@kolbusa kolbusa added enhancement New feature or request good first issue Good for newcomers labels Jan 30, 2021
@astier
Copy link
Author

astier commented Feb 1, 2021

I think this would be a reasonable behavior.

kolbusa added a commit that referenced this issue Feb 5, 2021
kolbusa added a commit that referenced this issue Feb 5, 2021
@kolbusa kolbusa closed this as completed in ba3b68e Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants