Patch from Denis Gantsev Fluxbox would segfault when no fonts were available. Now it just exits with an error.
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/FbTk/Font.cc
→
src/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;