all repos — fluxbox @ 43ae328658518a4ee1b3bf363f8865234c64a674

custom fork of the fluxbox windowmanager

Patch from Denis Gantsev

Fluxbox would segfault when no fonts were available. Now it just exits with an error.
Mark Tiefenbruck mark@fluxbox.org
commit

43ae328658518a4ee1b3bf363f8865234c64a674

parent

ee9c0a34baadbae98c510b1bf1b8c720a33c6f56

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/FbTk/Font.ccsrc/FbTk/Font.cc

@@ -43,6 +43,7 @@ #include <list>

#include <map> #include <typeinfo> #include <langinfo.h> +#include <iostream> #ifdef HAVE_SETLOCALE #include <locale.h>

@@ -231,6 +232,9 @@ s_font_cache[(*name_it)] = tmp_font;

m_fontstr = name; resetEffects(*this); return true; + } else { + std::cerr << "Couldn't initialize fonts. Check your fontconfig installation.\n"; + exit(1); } delete tmp_font;