diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-01-29 08:28:43 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-01-29 08:28:43 -0700 |
commit | 38e0c240f4eeba591131b59298c82dc16158e7ac (patch) | |
tree | 251f7167a79048a105948b1e72dceb479fa63993 /bin/ifuse-photos-to-tmp | |
parent | d2b57bbe6a3fae22dc96f463aca4a09f5566e613 (diff) | |
download | dotfiles-38e0c240f4eeba591131b59298c82dc16158e7ac.tar.gz |
fix spawning xdg-open at end of ifuse-photos-to-tmp
Diffstat (limited to 'bin/ifuse-photos-to-tmp')
-rwxr-xr-x | bin/ifuse-photos-to-tmp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ifuse-photos-to-tmp b/bin/ifuse-photos-to-tmp index 6b43b9d2..5605d294 100755 --- a/bin/ifuse-photos-to-tmp +++ b/bin/ifuse-photos-to-tmp @@ -130,4 +130,8 @@ remove_tree(glob("$mount/PhotoData/Thumbnails/V2/DCIM/10*"), system "fusermount -u $mount"; warn "failed to unmount $mount" unless ($? == 0); -system "xdg-open $dest &"; +if (fork) { + exit; +} else { + exec "xdg-open", $dest; +} |