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

zellij setup --check returns wrong info #2421

Closed
azinsharaf opened this issue May 3, 2023 · 3 comments
Closed

zellij setup --check returns wrong info #2421

azinsharaf opened this issue May 3, 2023 · 3 comments

Comments

@azinsharaf
Copy link

azinsharaf commented May 3, 2023

zellij setup --check confirms that config.kdl is in the correct location but when i luanch it it doesn't read the config file at all.

➜  ~ zellij setup --check
[Version]: "0.36.0"
[CONFIG DIR]: "/home/azin/.config/zellij"
[CONFIG FILE]: "/home/azin/.config/zellij/config.kdl"
[CONFIG FILE]: Well defined.
[DATA DIR]: "/home/azin/.local/share/zellij"
[PLUGIN DIR]: "/home/azin/.local/share/zellij/plugins"
 Builtin, default plugins will not be loaded from disk.
 Create a custom layout if you require this behavior.
[LAYOUT DIR]: "~/.config/zellij/layouts"
[SYSTEM DATA DIR]: "/usr/share/zellij"
[ARROW SEPARATOR]: 
 Is the [ARROW_SEPARATOR] displayed correctly?
 If not you may want to either start zellij with a compatible mode: 'zellij options --simplified-ui true'
 Or check the font that is in use:
 https://zellij.dev/documentation/compatibility.html#the-status-bar-fonts-dont-render-correctly
[MOUSE INTERACTION]:
 Can be temporarily disabled through pressing the [SHIFT] key.
 If that doesn't fix any issues consider to disable the mouse handling of zellij: 'zellij options --disable-mouse-mode'
[DEFAULT EDITOR]: nvim
[FEATURES]: []
[DOCUMENTATION]: zellij.dev/documentation

if I move the config.kdl to the config folder :

➜  zellij tree
.
├── config
│   └── config.kdl
└── layouts
    └── default.kdl

then running zellij DOES recegnize the config file but zellij check --setup retruns the following error:

➜  zellij zellij setup --check
[Version]: "0.36.0"
[CONFIG DIR]: "/home/azin/.config/zellij"
[CONFIG FILE]: "/home/azin/.config/zellij/config.kdl"
[CONFIG ERROR]: IoError: No such file or directory (os error 2), File: /home/azin/.config/zellij/config.kdl
[DATA DIR]: "/home/azin/.local/share/zellij"
[PLUGIN DIR]: "/home/azin/.local/share/zellij/plugins"
 Builtin, default plugins will not be loaded from disk.
 Create a custom layout if you require this behavior.
[LAYOUT DIR]: "/home/azin/.config/zellij/layouts"
[SYSTEM DATA DIR]: "/usr/share/zellij"
[ARROW SEPARATOR]: 
 Is the [ARROW_SEPARATOR] displayed correctly?
 If not you may want to either start zellij with a compatible mode: 'zellij options --simplified-ui true'
 Or check the font that is in use:
 https://zellij.dev/documentation/compatibility.html#the-status-bar-fonts-dont-render-correctly
[MOUSE INTERACTION]:
 Can be temporarily disabled through pressing the [SHIFT] key.
 If that doesn't fix any issues consider to disable the mouse handling of zellij: 'zellij options --disable-mouse-mode'
[DEFAULT EDITOR]: nvim
[FEATURES]: []
[DOCUMENTATION]: zellij.dev/documentation

zellij version: 0.36.0

@Kangaxx-0
Copy link
Contributor

According to your error log, zellij does not recognize your custom config path

[CONFIG FILE]: "/home/azin/.config/zellij/config.kdl".

For me, it could not find zellij/config/config.kdl, and then it loads default config.

I could slightly change the output [Config File] to [Looking for config file] to eliminate the confusion ?

@azinsharaf
Copy link
Author

azinsharaf commented May 5, 2023

at least it confused me: in the help it says: By default Zellij will look for config.kdl in the config directory.
To me this means /home/alice/.config/zellij/config not /home/alice/.config/zellij

@Kangaxx-0
Copy link
Contributor

I will submit a quick change for this :)

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