[sword-devel] Sword API / Basic question regarding InstallMgr class
Troy A. Griffitts
scribe at crosswire.org
Mon Jul 8 04:33:42 MST 2019
Yes. This is expected behavior. If you sudo your installmgr command, it will have access to install globally. If you cd to your ~/.sword folder and run the installmgr command, it will install to the CWD (as long as a mods.d/ folder exists to let SWORD know you are at the root of a SWORD module library).
Programmatically, you should specify where you want to install (globally or to a private module library for the user), so you are exactly correct. You should provide a destMgr which specifies the installation location. There are means to query an SWMgr which has autodiscovered its module library. Maybe you could see if you have write permission to the path.
On July 7, 2019 11:35:16 PM MST, Tobias Klein <contact at tklein.info> wrote:
>I'm struggling with some basic issues regarding installation of
>When using a SWMgr that has been initialized with no arguments as a
>destMgr (first Parameter) for InstallMgr, my module installs fail.
>Same thing happens when trying to use the command line utility
>./installmgr -ri CrossWire KJV
>Error installing module: [KJV] (write permissions?)
>On the other hand if I use a SWMgr with a fixed path as the first
>parameter (for example pointing to ~/.sword) then the installations of
>modules are succeeding.
>I'm using Sword 1.8.1.
>sword-devel mailing list: sword-devel at crosswire.org
>Instructions to unsubscribe/change your settings at above page
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel