myvxwm

[fork] my vxwm config (optimised for my T480)
git clone https://git.lukeonline.net/repos/myvxwm
Log | Files | Refs | README | LICENSE

autostart.c (238B)


      1 void
      2 runautostart(void)
      3 {
      4 	const char *const *cmd = autostart;
      5 
      6 	if (fork() == 0) {
      7 		setsid();
      8 
      9 		while (*cmd != NULL) {
     10 			if (fork() == 0) {
     11 				execl("/bin/sh", "sh", "-c", *cmd, NULL);
     12 				exit(1);
     13 			}
     14 			cmd++;
     15 		}
     16 		exit(0);
     17 	}
     18 }