diff --git a/Cargo.toml b/Cargo.toml index eebffa0..c956034 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bookmark-cd" -version = "1.0.3" +version = "1.0.4" edition = "2021" authors = ["Alec Brown "] description = "Bookmark directories and move to them" diff --git a/src/init/mod.rs b/src/init/mod.rs index e57686c..9eddda4 100644 --- a/src/init/mod.rs +++ b/src/init/mod.rs @@ -1,5 +1,5 @@ use home::home_dir; -use snapcraft::{check_snap_home, snap_real_home}; +use snapcraft::{check_snap_home, snap_data}; use std::fs::{File, OpenOptions}; use std::io::{prelude::*, stdout}; use std::path::PathBuf; @@ -19,7 +19,7 @@ pub(crate) fn setup_shell(interactive: bool) -> bool { let shell = ShellSetup::new(); let home = if shell.is_in_snap { - if let Some(home) = snap_real_home() { + if let Some(home) = snap_data() { home } else { home_dir().unwrap()