]> git.sur5r.net Git - i3/i3/commitdiff
Run the autostart commands.
authorFernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Mon, 22 Nov 2010 23:40:05 +0000 (21:40 -0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Nov 2010 22:30:27 +0000 (23:30 +0100)
src/main.c

index 787ff6fb0b1a1bd623ccf79c91fa009204a2134a..f0118f983071168c671415a9b4d740997bab5666 100644 (file)
@@ -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);
 }