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

config file named $XDG_CONFIG_HOME/.config/ghostty errors, Ghostty expects directory #3196

Open
pdeva opened this issue Dec 26, 2024 · 5 comments
Labels
needs-confirmation A reproduction has been reported, but the bug hasn't been confirmed or reproduced by a maintainer.

Comments

@pdeva
Copy link

pdeva commented Dec 26, 2024

this is my config file inside ghostty itself

Image

however this results in this error

Image

my config-file at the location specified is completely empty btw.
my initial thinking was to have the theme inside my custom config file too. but upon seeing the error, i moved the theme declaration to ghostty's own config file. yet i am seeing this error.

is there no way for ghostty to load themes from its default location when using a custom config file location?

@mitchellh
Copy link
Contributor

Ahhhhhhh. I think this is a regression from a recent change to detect directories. cc @jcollie I haven't verified it yet.

@mitchellh mitchellh added the needs-confirmation A reproduction has been reported, but the bug hasn't been confirmed or reproduced by a maintainer. label Dec 27, 2024
@pdeva
Copy link
Author

pdeva commented Dec 27, 2024

it seems it goes away if i rename my config file to anything other than ghostty. i renamed it to ghostty-config and now it works fine.

@mitchellh
Copy link
Contributor

Oh, no this is probably unrelated to @jcollie's changes. I think you just can't have a custom config file named $XDG_CONFIG_HOME/.config/ghostty. Hah!

@mitchellh mitchellh changed the title using theme with custom config file location results in error config file named $XDG_CONFIG_HOME/.config/ghostty errors, Ghostty expects directory Dec 27, 2024
@martinengelke

This comment has been minimized.

@mitchellh
Copy link
Contributor

This is off topic for this discussion. There is a dedicated and closed issue you can add your opinions if you’d like. I’m happy to explain more there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-confirmation A reproduction has been reported, but the bug hasn't been confirmed or reproduced by a maintainer.
Projects
None yet
Development

No branches or pull requests

3 participants