diff --git a/Cargo.lock b/Cargo.lock index 1115d29..f049680 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1525,7 +1525,6 @@ checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" [[package]] name = "lnk" version = "0.5.1" -source = "git+https://github.com/janstarke/lnk-rs.git?branch=main#8106162dc49b9ef3fc879b05d782f18ef33e6db1" dependencies = [ "binread", "bitflags 2.4.0", diff --git a/Cargo.toml b/Cargo.toml index c1aac38..5c0e6ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -172,7 +172,8 @@ nt_hive2 = {version="4.0.1", optional=true} # lnk2bodyfile #lnk = {version="0.5.1", optional=true} -lnk = { git="https://github.com/janstarke/lnk-rs.git", branch="main", optional=true } +#lnk = { git="https://github.com/janstarke/lnk-rs.git", branch="main", optional=true } +lnk = { path="../lnk-rs", optional=true} # pf2bodyfile libc = {version="0.2", optional=true} diff --git a/src/bin/lnk2bodyfile/lnk_file.rs b/src/bin/lnk2bodyfile/lnk_file.rs index 8544926..536cc11 100644 --- a/src/bin/lnk2bodyfile/lnk_file.rs +++ b/src/bin/lnk2bodyfile/lnk_file.rs @@ -16,10 +16,7 @@ impl LnkFile { fn print_bodyfile_for_me(&self) { let header = self.lnk_file.header(); - let localpath = match self.lnk_file.link_info() { - Some(s1) => LinkInfo::local_base_path(s1).unwrap_or("-"), - None => "-", - }; + let localpath = self.lnk_file.link_target().unwrap_or("-".to_string()); let arguments = match self.lnk_file.arguments() { Some(s) => s, None => "-",