[dev] SHCMD(cmd): this may be a stupid question, but...

From: Thayer Williams <thayerw_AT_gmail.com>
Date: Wed, 6 Jan 2010 10:06:23 -0800

What does this line do exactly?

/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }

I always assumed it was a way of launching applications without needing to
define each application explicitly as a separate command, but the more I look
at it, I'm thinking it's what actually defines the execution of the commands
below it, for example *dmenucmd[] and *termcmd[]

Is this about right?
Received on Wed Jan 06 2010 - 18:06:23 UTC

This archive was generated by hypermail 2.2.0 : Wed Jan 06 2010 - 18:12:02 UTC