Commited to git, closing the task.
Now unsetting the environment, required unsetenv compat code.
09:51:09Good catch there, will make it static and take a client as parameter then.
Please make a small change to ActionHandler::actionExec(.). In case of !client unset the environment variables, so that old values don't get reused.
Patch for setting CLIENET_WINDOW and CLIENT_PID attached.
OK by IOError if the patch doesn't introduce to many changes.
18:45:15Currently this dynamic menus set the environment variables CLIENT_WINDOW and CLIENT_PID when mapping, could be done in the environment but variables are expanded while parsing.
I guess doing a simple wrapper like this:
#!/bin/sh /path/to/real/command -blarg $CLIENT_WINDOW
Together with support for setting it in the environment should work, need to implement support for it in the exec code though if OK by IOError.