[sword-devel] Eloquent/InstallMgr Question

DM Smith dmsmith555 at yahoo.com
Tue Apr 8 14:28:03 MST 2008

Greg Hellings wrote:
> On Tue, Apr 8, 2008 at 2:31 PM, DM Smith <dmsmith555 at yahoo.com> wrote:
>> Greg Hellings wrote:
>>  > I've been trying to install a module into my Mac - I have tried using
>>  > the command-line installmgr as well as Eloquent.  Both of them claim
>>  > that they have installed the module (installmgr tells me it put it
>>  > into ~/.sword/InstallMgr/ftp.crosswire.org/... etc).  When I go to
>>  > check both that location as well as the location pointed to by
>>  > SWORD_PATH (which would be /sw/share/sword), I can find no indication
>>  > of any file installation.  Am I missing something?
>>  >
>>  > --Greg
>>  >
>>  Try looking at ~/Library/Application Support/Sword. This is the proper
>>  location for modules on a Mac. I'm not sure we've figured out the
>>  sharing yet (i.e. where to put it for multiple users to share the same
>>  repository).
> It seems that an application-by-application directory would work best,
> would it not?  Storing the modules somewhere in the application bundle
> seems natural for system-wide installs.
If I understand correctly, from a Leopard perspective, the app bundle 
should be static. Basically, a bundle should be signed. (I think this is 
an iPhone requirement) And thus, modules can't be installed into it.

>   Granted, this would be
> troublesome for sharing between, say, BibleDesktop and MacSword.
> Putting them in /Library/Application Support/Sword for global installs
> and ~/Library/Application Support/Sword would make sense.
This makes sense to me, too.  It is simple enough to modify Eloquent and 
BibleDesktop to also look there to find modules.

But how would one install to /Library/Application Support/Sword (the 
global area, not owned by a particular user)?

I wonder if /home/shared/Library/Application Support/Sword should be the 
global location? It should be world writable.

>   It's not
> really significantly different than the default Linux behavior of
> having globally installed modules in /usr/local/share/sword and
> user-specific modules in ~/.sword/.
> For an iPhone application, it seems from all early indications that
> they're going to restrict usage (at least for "proper" programs
> written with the sanctioned API) of the disk to locations within the
> application bundle, but I would imagine that system is going to be so
> specific that it won't really matter much, since there is unlikely to
> be a plethora of front-ends for the iPhone.
I'd be surprised if the app bundle allows for it to be both signed and 
modifiable. My guess is that there is a different location that an app 
can write files.

>   However, it might be
> possible to have access to the "user" directory on the iPhone - which
> would be the better installation location, does it seem for that
> platform, provided multiple options are available?

My guess is that Apple provides some guidance on this. I haven't looked 
for this regarding the iPhone.

>>  If that directory does not exist, create it. Then run Eloquent.
>>  (Hopefully, Eloquent will create the directory at some later release.)
>>  installmgr has no understanding of this location.
>>  In Him,
>>     DM

More information about the sword-devel mailing list