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

settings.json #149

Closed
Alireza2317 opened this issue Jan 23, 2024 · 8 comments
Closed

settings.json #149

Alireza2317 opened this issue Jan 23, 2024 · 8 comments

Comments

@Alireza2317
Copy link

Hello there.
I have a simple issue with the settings.json file. currently the app auto-creates it in my home direcory ~, but i would like to change its directory to somewhere else. how can i do that?
i think there should be a option in the gui to set this easily.

@4JX
Copy link
Owner

4JX commented Jan 24, 2024

I cannot do this from the GUI since the program would need to still need to have some known place to look up the fact it has to read the config from somewhere else.

A few options come to mind to specify a place to read/write to:

  • A CLI flag
  • An environment variable
  • Just dropping it in $XDG_CONFIG_HOME/$HOME/.config but that feels less flexible and explicit than the other two

@Alireza2317
Copy link
Author

I think an environment variable is ok. but there is no solution for this right now?

@4JX
Copy link
Owner

4JX commented Jan 24, 2024

Not at the moment

@4JX
Copy link
Owner

4JX commented Apr 12, 2024

Apologies for the delay, can you test if https://github.com/4JX/L5P-Keyboard-RGB/actions/runs/8667189970 does the job for you? (Backup your settings.json)

@Alireza2317
Copy link
Author

i'm sorry but what is the difference of this version exactly? i can't feel anything different. do i have to set an enviornment variable for the settings.json path?

@4JX
Copy link
Owner

4JX commented Apr 18, 2024

Whoops, my brain went into autopilot mode since I added an explanation to the readme in the same commit 😅.

Yes, try setting LEGION_KEYBOARD_CONFIG to point to a config file elsewhere.

@Alireza2317
Copy link
Author

well it worked quite nicely! thank you.

@4JX
Copy link
Owner

4JX commented May 10, 2024

@4JX 4JX closed this as completed May 10, 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