patch to allow exec_always in configure file

fixed indentation, updated docs
This commit is contained in:
Claudio Marforio
2011-07-12 12:24:01 +02:00
committed by Michael Stapelberg
parent 5555c0fd3b
commit cc24a96e96
6 changed files with 37 additions and 6 deletions

View File

@ -32,6 +32,9 @@ struct bindings_head *bindings;
/* The list of exec-lines */
struct autostarts_head autostarts = TAILQ_HEAD_INITIALIZER(autostarts);
/* The list of exec_always lines */
struct autostarts_always_head autostarts_always = TAILQ_HEAD_INITIALIZER(autostarts_always);
/* The list of assignments */
struct assignments_head assignments = TAILQ_HEAD_INITIALIZER(assignments);
@ -465,5 +468,12 @@ int main(int argc, char *argv[]) {
}
}
/* Autostarting exec_always-lines */
struct Autostart *exec_always;
TAILQ_FOREACH(exec_always, &autostarts_always, autostarts_always) {
LOG("auto-starting (always!) %s\n", exec_always->command);
start_application(exec_always->command);
}
ev_loop(main_loop, 0);
}