Skip to content

Commit

Permalink
Merge pull request #236 from EspressoSystems/to-home
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron authored Sep 19, 2024
2 parents 1253cd8 + 385c7ba commit f87d8e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ lazy_static! {
// The contents of the default public directory are included in the binary. The first time
// the default directory is used, if ever, we extract them to a directory on the host file
// system and return the path to that directory.
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");
// If the path already exists, move it aside so we can update it.
let _ = fs::rename(&path, path.with_extension("old"));
DEFAULT_PUBLIC_DIR.extract(&path).unwrap();
Expand Down

0 comments on commit f87d8e7

Please sign in to comment.