Ingo Sonne wrote:

What EXACTLY step by step have I to do to make Mahogany
store its data in config-file and on the same device as
its program file. The pdf-Manual is in this case no help
for me.

You need to tell mahogany on the command line to use the config file, and where it is. I've installed mahogany on a USB flash disk, and use the following batch file to run it in Windows:


@echo off
rem Start Mahogany with config file in current directory and user directory
rem userdir option doesn't seem to work; at least not in Windows.
subst M: %~dp0.
M:\M --config=M:\user\config
subst M: /D

I don't know if the %dp0 bit works in Windows 98 - I only use Windows 2000. Should work in XP.

There is a 'userdir' option listed in the help, but it doesn't seem to work - at least not the way I expected it to. It appears that the config file overrides the command-line userdir option. BTW note the "." at the end of the subst line - it won't work properly without it (Windows "feature", at least on W2K). I created a "user" subdirectory of the mahogany directory and moved the config file into that subdirectory.

I've also edited the config file replacing all the paths with M:\\user - relevant entries are:

UserDirectory=M:\\user
GlobalDir=M:\\
FolderDir=M:\\user
LogFile=M:\\log

This works (unless you stick it in a machine that already has an M: drive!), so I haven't experimented further.

Basically although you can tell Mahogany to use a config file, those entries in the config file cannot normally reflect changing locations of M. The Unix version can pick up environment variables in the config file (so you can say things like "UserDirectory=$HOME/Mahogany" - this may or may not work in Windows; I haven't tried. If it does, you might be able to do something like:

UserDirectory=%MAHOGPATH%\\user

etc. in the config file and

set MAHOGPATH=%~dp0
.\M --config=%MAHOGPATH%\user\config

but I don't know for sure.

Kev.






------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Mahogany-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to