mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Komorebic is not able to load configuration symlinked from WSL. #393
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ferdinandyb on GitHub (May 28, 2024).
Describe the bug
Komorebic is not able to load configuration symlinked from WSL.
To Reproduce
Symlink the
.config/komorebidirectory to WSL, withmklink /D komorebi \\wsl.localhost\Ubuntu\home\bferdinandy\.config\wsl\komorebiThe result should be something like this:
Run
komorebi.exeand see that komorebi cannot open the configuration file:Note that
cat C:\Users\bferdinandy\.config\komorebi\komorebi.jsonwill output the file, although it does take around 3 seconds.Expected behavior
Komorebi reads the configuration file properly.
Operating System
Provide the output of
systeminfo | grep "^OS Name\|^OS Version"komorebic checkOutputProvide the output of
komorebic check@LGUG2Z commented on GitHub (May 28, 2024):
https://github.com/microsoft/WSL/issues/5118
Possibly related to the issue above, but even if it's not I have no intention of touching this and will not accept any patches that try to implement any workarounds; the maintenance burden on something this brittle just isn't worth it.
I keep all of my dotfiles, including my Windows dotfiles, including my komorebi.json file, in my NixOS configuration. The sane move here to copy-on-change across the network mount and not to try to symlink.
@ferdinandyb commented on GitHub (May 28, 2024):
Yeah, my dotfiles are also in WSL with yadm. Copying is of course a viable option, so I can live with this.
@tpsteiner commented on GitHub (Apr 22, 2025):
For me too. Not a big deal. It might be a nice-to-have in the future. I use chezmoi to manage my dotfiles. It's awesome. On a related note: XDG compliance would also be nice, though doing so will screw up everyone's current config xD
Solution to copy on apply for chezmoi, courtesy of Gemini...
Paste the following into ~/.local/share/chezmoi/run_after_99-sync-komorebi-to-windows.sh.tmpl