Skip to content

Commit

Permalink
use lnk_target function
Browse files Browse the repository at this point in the history
  • Loading branch information
janstarke committed Feb 16, 2024
1 parent 30560a7 commit 7a9b0a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
5 changes: 1 addition & 4 deletions src/bin/lnk2bodyfile/lnk_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => "-",
Expand Down

0 comments on commit 7a9b0a2

Please sign in to comment.