diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-31 09:18:47 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-31 09:18:47 -0500 |
| commit | 3ec03e61f49231502ca7e5e87d7895bea90f11bc (patch) | |
| tree | 32c886529b442bcfce66e626f2fe1b2e33371eb1 /dwm.c | |
| parent | 8d1417b53842b9667f2a6b049cf33dabb47c3f4e (diff) | |
| download | dwm-3ec03e61f49231502ca7e5e87d7895bea90f11bc.tar.gz dwm-3ec03e61f49231502ca7e5e87d7895bea90f11bc.tar.xz | |
Allow for loading of environment variables on start
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2455,6 +2455,9 @@ main(int argc, char *argv[]) if (!(dpy = XOpenDisplay(NULL))) die("dwm: cannot open display"); checkotherwm(); + FILE *fh; + if ((fh = fopen(".env", "r"))) + readEnv(fh); setDmenuFlags(); setup(); #ifdef __OpenBSD__ |
