1/10/2024 0 Comments Rew install4j wizardI thought I saw it run without the error last night (and with no visible "Hello, world" output), but I may have had Moneydance already running. Ignoring invalid argument: -invoke_and_quit moneydance:fmodule:jpython:runfile?=/home/werme/moneydance/hello.py $ /bin/sh "/opt/Moneydance/Moneydance" "-invoke_and_quit moneydance:fmodule:jpython:runfile?=/home/werme/moneydance/hello.py" I will note that what would have worked in 2007 doesn't work now: As I mentioned elsewhere, I'll explore further and likely start a new discussion. \Īs for your observation "my read of the code was that whilst it detects a PY script, it actually ignores this and doesn't run it - needs testing" opt/Moneydance/lib/TableLayout-bin-jdk1.5-.jar \Ĭom. \ opt/Moneydance/lib/swingx-core-1.6.2.jar: opt/Moneydance/lib/jfreechart-1.0.13.jar: opt/Moneydance/lib/jackson-core-2.7.4.jar: opt/Moneydance/lib/httpclient-4.5.6.jar: opt/Moneydance/lib/commons-logging-1.2.jar: opt/Moneydance/lib/commons-lang3-3.5.jar: opt/Moneydance/lib/bcprov-jdk16-146.jar: opt/Moneydance/.install4j/i4jruntime.jar: Dexe4j.moduleName=/opt/Moneydance/Moneydance \ $ /bin/sh -x "/opt/Moneydance/Moneydance" Icon=/opt/Moneydance/.install4j/Moneydance.png With spaces and colons replaced with line breaks, I ultimately see:Įxec=/bin/sh "/opt/Moneydance/Moneydance" I'll abandon it.įWIW, on my Linux installation (run as root), the startup script expands into an equally ugly command line. paths like "-Duser.dir="$/Library/Containers//Data" simply don't exist anywhere on my Linux system. Yeah, your script is way more Mac specific than I want to deal with. The rest is for you to play and experiment with. The script as is will launch the installed \Applications\Moneydance.app package, but you might for example have different versions, so update the name accordingly. Update the script with your own user path - this is critical Download/install Java FX (allows Moneybot Console) to run: - Download/install OpenAdoptJDK (Hotspot) v15: - Edit the script with the correct install folder paths You need to do a couple of things first (all documented within the script): Ability to swap in your own java libraries (assuming you are a developer) d for debug mode or -invoke_and_quit=x or importfilenameģ. Ability to launch MD with parameters - e.g. Ability to run without Mac sandbox restrictions (access to all folders, no silly Gatekeeper jffi*.dylib messages with Python)Ģ. But this script does replicate the folder structures that you get when running in a sandbox.ġ. I've tried, but you need to build an app launcher for that, and then why bother as we already have the MD App. There is one thing it cannot do, and that is to run within a Mac App sandbox. This script sets up your environment to be virtually identical to when running from the icon. UPDATE: Please visit my GitHub site for the latest version of this code: I'm uploading this shell script as an example for other who might want to do this. I've tried before, but invariably it wouldn't work, or Moneybot wouldn't work, or the base folders were different to when running from the icon (and thus it wasn't loading config.dict). This has been written for Mac, but can easily be adopted for Windows and Linux. At this point I must send credit and thanks to hleofxquotes who provided me with the initial framework (as I was stuck). Attached is a (zipped) shell script that allows you to launch Moneydance from the terminal command line in a manner that replicates launching from the installed app icon.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |