Re: Problem building on Linux with D-Bus

Dmitry Medvinsky <[email protected]> Wed, 26 Oct 2011 14:10:30 +0400
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
> For now you could create an empty workrave.ini file in your $HOME/.workrave 
> directory or install gdome2.

Actually I have gdome2 installed.

And having a glance at the code I'm not sure I understand how it is supposed to
work. I mean `Core::init_configurator()` calls

    ConfiguratorFactory::create(ConfiguratorFactory::FormatNative)

in any case if ini file does not exist and GCONF is disabled.

And `ConfiguratorFactory::create` has

    #ifdef HAVE_GDOME
        if (fmt == FormatXml)

Lines, which means Xml configurator won't be created this time (when called
with `FormatNative`) even if GDOME is enabled.

Then `ConfiguratorFactory::create` checks for `FormatNative` only with one of
    HAVE_GSETTINGS
    HAVE_GCONF
    PLATFORM_OS_WIN32
    PLATFORM_OS_OSX
defined.

Then it checks for `FormatIni`, otherwise it calls `exit(1)`.

So it seems to me the code would never reach the

    configurator = ConfiguratorFactory::create(ConfiguratorFactory::FormatXml);

line in Core.cc

Am I overlooking something?

Thanks,
Dmitry

------------------------------------------------------------------------------
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