Skip to content

Commit

Permalink
Release v1.0.4
Browse files Browse the repository at this point in the history
Change snap storage location so it does not try the snap home or the real home, but instead to the SNAP_DATA . folder as it is good across refreshes
  • Loading branch information
a1ecbr0wn committed Feb 3, 2023
1 parent adddede commit e1d5682
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bookmark-cd"
version = "1.0.3"
version = "1.0.4"
edition = "2021"
authors = ["Alec Brown <[email protected]>"]
description = "Bookmark directories and move to them"
Expand Down
4 changes: 2 additions & 2 deletions src/init/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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()
Expand Down

0 comments on commit e1d5682

Please sign in to comment.