From 91d40f6c978c94e61b3b8b4b1af2954edd68001e Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 1 Mar 2012 19:40:05 +0200 Subject: config: add SHCMD helper to run shell commands --- config.def.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.def.h') 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 };' -- cgit v1.3.1