From adc88698fb66789c5fdab8773c0364dd5c114eff Mon Sep 17 00:00:00 2001 From: mathias Date: Mon, 25 Apr 2005 06:47:01 +0000 Subject: #1188690, fbrun segfault --- ChangeLog | 3 +++ src/FbTk/App.cc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0cfd15f..d967eb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.13 +*05/04/25: + * Fixed #1188690, fbrun segfault (Mathias) + FbTk/App.cc *05/04/23: * Close of #956325 (Mathias) WorkspaceMenu -> left click on a item will jump TO that diff --git a/src/FbTk/App.cc b/src/FbTk/App.cc index 8ced4a1..084b801 100644 --- a/src/FbTk/App.cc +++ b/src/FbTk/App.cc @@ -51,6 +51,8 @@ App::App(const char *displayname):m_done(false), m_display(0) { if (displayname != 0 && displayname[0] == '\0') displayname = 0; m_display = XOpenDisplay(displayname); + if (!m_display) + throw std::string("Couldn't connect to XServer"); Font::init(); Image::init(); -- cgit v0.11.2