X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=21310f73c94c05facad32cd1610ae99acedae9bd;hb=6314288a163adc8af40f35dc57e89a79e1e282f5;hp=51506d11afee2821e87ac9a00fb0487106b0f55d;hpb=f7ec931e08d939abd02d4049d00e9952f8fce140;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 51506d1..21310f7 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -6036,7 +6036,7 @@ setconfspawn(char *selector, char *value, int flags) which[i] = '\0'; break; } - if (system(which) != 0) + if (flags == 0 && system(which) != 0) add_startup_exception("could not find %s", &which[strlen("which ")]); @@ -6052,7 +6052,6 @@ setup_spawn(void) { setconfspawn("term", "xterm", 0); setconfspawn("spawn_term", "xterm", 0); - setconfspawn("lock", "xlock", 0); setconfspawn("menu", "dmenu_run" " -fn $bar_font" " -nb $bar_color" @@ -6073,6 +6072,13 @@ setup_spawn(void) " -nf $bar_font_color" " -sb $bar_border" " -sf $bar_color", 0); + + /* these are not verified for existence */ + setconfspawn("lock", "xlock", 1); + setconfspawn("screenshot_all", "screenshot.sh full", 1); + setconfspawn("screenshot_wind", "screenshot.sh window", 1); + setconfspawn("initscr", "initscreen.sh", 1); + } /* key bindings */