support "launch <command>" in .xoatrc

This commit is contained in:
Sean Pringle
2015-01-08 07:33:21 +10:00
parent 33d432759d
commit e4e8ab2880
4 changed files with 28 additions and 1 deletions

View File

@@ -216,4 +216,11 @@ void setup()
client_place_spot(c, c->spot, c->monitor, 0);
if (!current) client_activate(c);
}
// auto launch
if (settings.launchcmd_count)
{
for (i = 0; i < settings.launchcmd_count; i++)
exec_cmd(settings.launchcmds[i]);
}
}