Forum post here
https://sourceforge.net/forum/forum.php?thread_id=1494259&forum_id=313636
mentions having a self-contained memoranda application
on a usb-stick. I read that to mean having this in a
single directory:
build/memoranda.jar
lib/*.jar
data/
tasklist.dtd
Here's one idea. The implementation is a mod to
net/sf/memoranda/util/Util.java that peeks for env
variable MEMORANDA_HOME before doing the normal thing
of checking user.home/.jnotes2 and user.home/.memoranda.
I'd like to make it sensitive to java cmdline args too, eg.
cd /media/thumbdrive/memoranda
java -DMEMORANDA_HOME=./data -jar build/memoranda.jar
I've got it working with this (windows) script (in
C:\projects\portable-memoranda\portable-memoranda.bat)
set MEMORANDA_HOME=C:\projects\portable-memoranda\data\ java -jar build\memoranda.jar
or by manually setting env variable MEMORANDA_HOME and
calling the normal memoranda.bat file.
Untested as yet on linux or actual thumb drive :)
- Mark k.
Update to memoranda.util.Util,getEnvDir() to look for MEMORANDA_HOME environment variable.
Logged In: YES
user_id=1636967
Attaching portable-memoranda.zip
(1) Unzip onto a thumb drive
(2) copy user.home/.memoranda/ into data/
(3) Either set
MEMORANDA_HOME=/thumbdrive/portable-memoranda/data or alter
one of the portable-memoranda.bat|sh scripts to the path
(4) Run memoranda.bat and/or the portable-memoranda.bat|sh
script you modified.
This zip should contain everything for a working memoranda
install, but let me know if I've bungled anything.
- Mark k.
Logged In: YES
user_id=1636967
Hmm. Unable to upload a .zip file. Will try this evening.
- Mark k.
Logged In: YES
user_id=1636967
dang - I guess they're serious when they want a patch (and
only a patch) attached...
Apply the patch that's here, and probably the suggestions from
http://sourceforge.net/forum/message.php?msg_id=3968574
then set MEMORANDA_HOME and Bob's your uncle.
Cheers
- Markk
Logged In: YES
user_id=734855
Originator: NO
Good Idea! a simple solution that works!