Skip to content
Snippets Groups Projects
Commit 63abbdc4 authored by Keith Whitwell's avatar Keith Whitwell
Browse files

Add -autostart option

parent daae83a4
No related branches found
No related tags found
No related merge requests found
/* $Id: sample_server2.c,v 1.1.2.3 2003/04/29 08:21:44 keithw Exp $ */
/* $Id: sample_server2.c,v 1.1.2.4 2003/04/29 09:41:01 keithw Exp $ */
/*
* Sample server that just keeps first available window mapped.
......@@ -50,6 +50,10 @@ int main( int argc, char *argv[] )
{
Display *dpy;
XEvent ev;
int autostart = 0;
if (argc == 2 && strcmp(argv[1], "-autostart") == 0)
autostart = 1;
dpy = __miniglx_StartServer(NULL);
if (!dpy) {
......@@ -194,6 +198,10 @@ int main( int argc, char *argv[] )
break;
}
}
if (!clients && autostart) {
system("nohup ./texline &");
system("nohup ./manytex &");
}
}
else if (bored) {
struct client *c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment