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

Fix config directory in gdscript-eglot-contact #156

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

katomuso
Copy link
Contributor

@katomuso katomuso commented Nov 3, 2024

It seems there is a bug due to additionally concatenating the godot directory to already proper config directories on macOS and Windows. According to https://docs.godotengine.org/en/latest/tutorials/io/data_paths.html#editor-data-paths, on macOS and Windows, editor settings are stored in the Godot directory. For example, currently on macOS the resulting directory path will be ~/Library/Application Support/Godot/godot/ when it should be ~/Library/Application Support/Godot/.

@katomuso
Copy link
Contributor Author

katomuso commented Nov 3, 2024

I've noticed there was #151, though it doesn't handle the case with XDG_CONFIG_HOME.

@russmatney
Copy link

This looks good! I wouldn't hold up merging this, but would at least mention this comment: #151 (comment) - might be a relevant detail for windows users in this code?

@katomuso
Copy link
Contributor Author

katomuso commented Nov 3, 2024

@russmatney Thank you for pointing it out! Indeed, my solution required additional tweaks.

@NathanLovato NathanLovato merged commit bee7f99 into godotengine:master Nov 4, 2024
13 checks passed
@NathanLovato
Copy link
Collaborator

Thank you for your contribution!

@katomuso katomuso deleted the fix-config-dir branch November 5, 2024 07:45
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

Successfully merging this pull request may close these issues.

4 participants