4JX / L5P-Keyboard-RGB

Cross platform software to control the RGB/lighting of the 4 zone keyboard included in the 2020, 2021, 2022 and 2023 lineup of the Lenovo Legion laptops. Works on Windows and Linux.
GNU General Public License v3.0
325 stars 41 forks source link

settings.json #149

Closed Alireza2317 closed 6 months ago

Alireza2317 commented 9 months ago

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 commented 9 months ago

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:

Alireza2317 commented 9 months ago

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

4JX commented 9 months ago

Not at the moment

4JX commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

well it worked quite nicely! thank you.

4JX commented 6 months ago

Closed via https://github.com/4JX/L5P-Keyboard-RGB/releases/tag/v0.19.6