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

Correct paths for utop-history, utoprc: in utop subdirs of XDG base dirs #484

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tuohy
Copy link
Contributor

@tuohy tuohy commented Apr 3, 2024

Issue #481 described failure to load utoprc from its stated location
PR #475 misidentified the issue as an incorrect README

In fact the paths were pointing to files within the XDG base directories themselves rather than in a subdirectory for the utop application.

This patch simply changes $XDG_STATE_HOME/utop-history to $XDG_STATE_HOME/utop/utop-history and $XDG_CONFIG_HOME/utoprc to $XDG_CONFIG_HOME/utop/utoprc

@tuohy tuohy requested a review from rgrinberg as a code owner April 3, 2024 08:50
@tuohy
Copy link
Contributor Author

tuohy commented Apr 4, 2024

Added check & creation of history file's parent directory, fixing #478

This was exacerbated with the first patch because XDG_STATE_HOME/utop was extremely unlikely to exist on any system

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.

None yet

1 participant