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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Correct paths for utop-history, utoprc: in utop subdirs of XDG base dirs
Garth Tuohy committed Apr 3, 2024
commit edca64d2cc5fffc49510741b17c0cdc5edebd73f
4 changes: 2 additions & 2 deletions src/lib/uTop_private.ml
Original file line number Diff line number Diff line change
@@ -22,12 +22,12 @@ module Default_paths = struct
let history_file_name =
resolve
~legacy:(LTerm_resources.home / ".utop-history")
~filename:(Xdg.state_dir xdg / "utop-history")
~filename:(Xdg.state_dir xdg / "utop" / "utop-history")

let config_file_name =
resolve
~legacy:(LTerm_resources.home / ".utoprc")
~filename:(Xdg.config_dir xdg / "utoprc")
~filename:(Xdg.config_dir xdg / "utop" / "utoprc")
end

let size, set_size =