You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For your use case can you create the symlink in the new location and allow the real file to be in .config/qmk/qmk.ini? Alternatively can you can symlink the .config/qmk directory instead?
The code you're running into lives inside of MILC and is designed be atomic. To support a symlink instead we'd need to change that strategy and be ok with the potential for corrupted configuration files.
Alternatively can you can symlink the .config/qmk directory instead?
Ah this works perfectly! So sorry if there are docs on this -- I didn't notice anything. Though I did take a look through issue history and didn't find anything (granted didn't look too hard).
Would it be reasonable to have qmk_cli issue a warning when it detects the qmk.ini is a symlink, perhaps giving the recommendations outlined by @skullydazed? This would at least keep someone else from filing this same issue in the future.
I dug into this a little bit more and found that I could solve this problem in MILC by resolving the config_file. I've released https://pypi.org/project/milc/1.2.0/ which should fix you up. You can upgrade with python3 -m pip install -U milc. If you're using homebrew it should go out with the next qmk_cli update.
If
qmk.ini
is a symlink, changing values withqmk configure
breaks the symlink and overwrites with a new file.Reproduction
qmk.ini
withqmk setup
or another method.config/qmk/qmk.ini -> somedir/qmk.ini
)qmk configure somekey=someval
.config/qmk/qmk.ini
is no longer a symlink (ls -l .config/qmk/qmk.ini
)Additional Context
qmk_cli
version: Off of master branch (0.0.40.r5.gd805fe2)The text was updated successfully, but these errors were encountered: