diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-09-23 00:48:47 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-11-23 21:34:11 +0000 |
commit | 9167c61b60c5492c6168687fd3fbb3b9f56ccd8c (patch) | |
tree | f37916ab4438db15974bf31e6bbe0293e397977a | |
parent | ab862e33add80efae9da080df9369dd3c254cb54 (diff) | |
download | imv-9167c61b60c5492c6168687fd3fbb3b9f56ccd8c.tar.gz |
Set $PATH for exec command
-rw-r--r-- | src/imv.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |