aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-03-01 19:40:05 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-12-16 02:11:13 +0200
commit91d40f6c978c94e61b3b8b4b1af2954edd68001e (patch)
tree43f3ab12c6b7a8fa5a0e69abc85f867fdcde971b
parent579de40d8b20378169ca537cafa157526bc99051 (diff)
config: add SHCMD helper to run shell commands
-rw-r--r--config.def.h3
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 };'