From: Fernando Tarlá Cardoso Lemos Date: Mon, 22 Nov 2010 23:40:05 +0000 (-0200) Subject: Run the autostart commands. X-Git-Tag: tree-pr1~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1d52bf179b573344a9a7ab697f7cd87ce72b2bd3;p=i3%2Fi3 Run the autostart commands. --- diff --git a/src/main.c b/src/main.c index 787ff6fb..f0118f98 100644 --- a/src/main.c +++ b/src/main.c @@ -338,5 +338,14 @@ int main(int argc, char *argv[]) { manage_existing_windows(root); + /* Autostarting exec-lines */ + if (autostart) { + struct Autostart *exec; + TAILQ_FOREACH(exec, &autostarts, autostarts) { + LOG("auto-starting %s\n", exec->command); + start_application(exec->command); + } + } + ev_loop(loop, 0); }