diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-03-01 19:40:05 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-12-16 02:11:13 +0200 |
| commit | 91d40f6c978c94e61b3b8b4b1af2954edd68001e (patch) | |
| tree | 43f3ab12c6b7a8fa5a0e69abc85f867fdcde971b | |
| parent | 579de40d8b20378169ca537cafa157526bc99051 (diff) | |
config: add SHCMD helper to run shell commands
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 9185f39..7b46a87 100644 --- a/config.def.h +++ b/config.def.h @@ -37,6 +37,9 @@ static const AppRule rules[] = { \ { "Gimp", 0, False, True }, }; +/* helper for spawning shell commands */ +#define SHCMD(cmd) {.com = (const char*[]){"/bin/sh", "-c", cmd, NULL}} + /** * custom commands * must always end with ', NULL };' |
