Skip to content

themes kitten does not recognize absolute paths #6638

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

Closed
bagohart opened this issue Sep 18, 2023 · 0 comments
Closed

themes kitten does not recognize absolute paths #6638

bagohart opened this issue Sep 18, 2023 · 0 comments
Labels

Comments

@bagohart
Copy link

bagohart commented Sep 18, 2023

Describe the bug
According to the doc,

--config-file-name <CONFIG_FILE_NAME>

    The name or path to the config file to edit. Relative paths are interpreted with respect to the kitty config directory. By default the kitty config file, kitty.conf is edited. This is most useful if you add include themes.conf to your kitty.conf and then have the kitten operate only on themes.conf, allowing kitty.conf to remain unchanged. Default: kitty.conf

which implies that the --config-file-name option accepts both relative paths and absolute paths. But when I pass an absolute path, it is erroneously interpreted as a relative path.

To Reproduce
Steps to reproduce the behavior:

  1. kitty +kitten themes --reload-in=all --config-file-name /home/<your_user_name>/.config/kitty/dark_or_light.conf "Modus Operandi"
  2. Error: open /home/<your_user_name>/.config/kitty/home/<your_user_name>/.config/kitty/dark_or_light.conf.atomic-write-144744982: no such file or directory

Environment details

kitty 0.29.2 created by Kovid Goyal
Linux <machine_name> 6.1.51-1-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Sep  2 23:22:36 UTC 2023 x86_64
Manjaro Linux 6.1.51-1-MANJARO  (<machine_name>) (/dev/tty)
[...]

I'm pretty sure this used to work, and it stopped working a few months ago. (Sorry, not sure when exactly it stopped working.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant