Closed vitorio closed 3 months ago
Hey! Thanks for reporting this, I haven't forgotten about it. Just been a bit busy!
I want to add a UI for managing config paths etc, but for now it's probably easier to just passthrough any command line args passed to the .exe
and merge them in to the default provided in exeChildProcess
.
Will plan to sort this before the next release.
This is now supported and has been merged into the main branch with commit a804e16f3d28d011d410ca017eacbc7a97b6187f
I tested this on my Windows machine by creating a shortcut link to the portable .exe
with a custom --storage-dir
and --reticulum-config-dir
. I did have to provide an absolute path and not a relative path, otherwise the folders were created elsewhere. Unsure where, because the shortcut had the working dir set to where it was opened from...
I have not tested this on an external USB drive yet, but will attempt this later on. Let me know if this works for you and I can close this issue :)
Note that this is not in the v1.7.0 release. You will need to run npm run dist
on a Windows machine to build the portable .exe for testing.
For the portable Windows executable to really be portable (e.g. run off an encrypted volume on a USB stick), it'd be useful for it to accept the same parameters as the web.py launcher so all the identity, configuration, and storage can be stored alongside it. Right now, it's hardcoded (in main.js) to
~/.reticulum-meshchat
forstorageDir
with no option to setconfigDir
. It'd be useful to accept these:In the interim, a workaround is to extract the Electron app, edit
resources/app/electron/main.js
, and change line 83 to modifystorageDir
to the desired path. Then, add code like this below it to setconfigDir
to the desired path:Finally, change the
exeChildProcess
call to:to use the new
configDir
path. Then, just run the extractedReticulum MeshChat.exe
directly instead of the packaged portable file, and it'll use the modified JS.