summaryrefslogtreecommitdiff
path: root/bin/ifuse-photos-to-tmp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-01-29 08:28:43 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-01-29 08:28:43 -0700
commit38e0c240f4eeba591131b59298c82dc16158e7ac (patch)
tree251f7167a79048a105948b1e72dceb479fa63993 /bin/ifuse-photos-to-tmp
parentd2b57bbe6a3fae22dc96f463aca4a09f5566e613 (diff)
downloaddotfiles-38e0c240f4eeba591131b59298c82dc16158e7ac.tar.gz
fix spawning xdg-open at end of ifuse-photos-to-tmp
Diffstat (limited to 'bin/ifuse-photos-to-tmp')
-rwxr-xr-xbin/ifuse-photos-to-tmp6
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;
+}