Re: Problem building on Linux with D-Bus

Dmitry Medvinsky <[email protected]> Thu, 27 Oct 2011 13:52:20 +0400
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
Hey again,

I was able to run Workrave with this simple two-line change. I'm not sending a
pull request though since I'm not sure that's the right way to do it.

Here's the patch anyway for you to have a look:

commit 93477f3c018a4797d2897474efefc2da94869325
Author: Dmitry Medvinsky <[email protected]>
Date:   Thu Oct 27 13:50:05 2011 +0400

    Try to fix XML configurator creation

diff --git a/backend/src/ConfiguratorFactory.cc b/backend/src/ConfiguratorFactory.cc
index 2f07173..c86f043 100644
--- a/backend/src/ConfiguratorFactory.cc
+++ b/backend/src/ConfiguratorFactory.cc
@@ -58,6 +58,8 @@ ConfiguratorFactory::create(Format fmt)
       b = new XMLConfigurator();
     }
   else
+    if (fmt == FormatNative) return NULL;
+  else
 #endif
 
 #if HAVE_GSETTINGS


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev