aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2017-09-23 00:48:47 +0100
committerHarry Jeffery <harry@exec64.co.uk>2017-11-23 21:34:11 +0000
commit9167c61b60c5492c6168687fd3fbb3b9f56ccd8c (patch)
treef37916ab4438db15974bf31e6bbe0293e397977a
parentab862e33add80efae9da080df9369dd3c254cb54 (diff)
downloadimv-9167c61b60c5492c6168687fd3fbb3b9f56ccd8c.tar.gz
Set $PATH for exec command
-rw-r--r--src/imv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imv.c b/src/imv.c
index bb666c6..f784a27 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -1048,7 +1048,8 @@ void command_overlay(struct imv_list *args, const char *argstr, void *data)
void command_exec(struct imv_list *args, const char *argstr, void *data)
{
(void)args;
- (void)data;
+ struct imv *imv = data;
+ setenv("imv_path", imv_navigator_selection(imv->navigator), 1);
system(argstr);
}