[sword-devel] Using Multiple Front-ends

Karl Kleinpaste karl at kleinpaste.org
Sun Mar 4 19:05:28 MST 2018


On 03/04/2018 08:46 PM, bschroeder at internode.on.net wrote:
> I am using Linux, Windows and Android.
FYI in Sword, this is in swmgr.cpp:
const char *SWMgr::globalConfPath =
"/etc/sword.conf:/usr/local/etc/sword.conf";
/etc/sword.conf references /usr/share/sword by default. Typically,
though, this is unused, module installation tending toward being a
personal matter.

And so then $HOME/.sword is also checked in swmgr.cpp.

Along the way, $SWORD_PATH is handled.

OS-specific hackery includes the Windows check:
    // for various flavors of windoze...
    // check %ALLUSERSPROFILE%/Application Data/sword/

No mention of Android in the code, but it's Linux, except that I'm not
aware that $HOME means anything in Android...

Don't neglect that SWMgr's general goal is the amalgamation of all
discovered module areas, e.g. you can have modules in both
/usr/share/sword and ~/.sword. I don't know the rules for precedence in
that case, if e.g. kjv.conf is found in each.

This is all in Sword. No clues about JSword's habits.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180304/88b4d513/attachment.html>


More information about the sword-devel mailing list