diff options
author | Michiel Beijen <mb@x14.nl> | 2023-12-03 12:59:07 +0100 |
---|---|---|
committer | Michiel Beijen <mb@x14.nl> | 2023-12-03 12:59:49 +0100 |
commit | 20c6e48143cd0f75dfbcd85a7179de04bff788bf (patch) | |
tree | 8092c1b1b69b165d79cfe268560611b832baa543 | |
parent | bfa9cdf1c993699b7d5e2d2d03392f2e957fb112 (diff) |
mimeopen: use F::DE run() instead of exec()
This makes sure the mimeopen program exits when launching the app.
Closes https://github.com/mbeijen/File-MimeInfo/issues/53
-rwxr-xr-x | mimeopen | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -174,12 +174,12 @@ print 'Opening '.join(', ', map qq{"$_"}, @ARGV) . ' with '.$default->get_value('Name')." ($mimetype)\n"; #print STDERR "exec string: ".$default->parse_Exec(@ARGV)."\n"; if (@ARGV == 1 or $default->wants_list) { - $default->exec(@ARGV); + $default->run(@ARGV); } else { my $last = pop @ARGV; fork or $default->exec($_) for @ARGV; - $default->exec($last); + $default->run($last); } exit 7; # something went wrong in the exec |