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

Change default dir to be based off of $HOME #236

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Change default dir to be based off of $HOME #236

merged 3 commits into from
Sep 19, 2024

Conversation

rob-maron
Copy link
Contributor

No description provided.

let path = dirs::data_local_dir()
.unwrap_or_else(|| env::current_dir().unwrap_or_else(|_| PathBuf::from("./")))
.join("tide-disco/public/media");
let path = PathBuf::from("$HOME/tide-disco/public/media");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So $HOME get's expanded here? Neat!

I would make it a dotfile (~/.tide-disco/) so we aren't cluttering up people's home directories

@rob-maron rob-maron merged commit f87d8e7 into main Sep 19, 2024
6 of 7 checks passed
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.

2 participants