2012-04-24 00:00:33 |
Brendan Kidwell |
description |
I am trying to get the Ditaa plugin to work in Windows. It looks for an executable file in $PATH called 'ditaa'.
I have in my $PATH a ~/bin folder, and I created a launcher in there for ditaa called 'ditaa.cmd'. It contains the following line of code:
java -jar "C:\Users\kidwellb\Apps\Ditaa\ditaa0_9.jar" %*
and it should work just fine for invoking Ditaa.
The Ditaa plugin doesn't think the Ditaa CLI tool exists -- it doesn't find my launcher file. I looked into the code. See http://bazaar.launchpad.net/~jaap.karssenberg/zim/pyzim/view/head:/zim/applications.py Application#_lookup()
In Windows, _lookup() looks for the presence of '$launcher' and '$launcher.exe'. It should also look for these file extensions in addition to 'cmd', which may be used to launch a command line tool: bat, vbs, py, pl, js, jar. (And others?)
Sorry I can't submit a patch because I don't quite understand the logic of this function. (What is the meaning of the 'else' clause following the 'for' statement? Is this legal?) |
I am trying to get the Ditaa plugin to work in Windows. It looks for an executable file in $PATH called 'ditaa'.
I have in my $PATH a ~/bin folder, and I created a launcher in there for ditaa called 'ditaa.cmd'. It contains the following line of code:
java -jar "C:\Users\kidwellb\Apps\Ditaa\ditaa0_9.jar" %*
and it should work just fine for invoking Ditaa.
The Ditaa plugin doesn't think the Ditaa CLI tool exists -- it doesn't find my launcher file. I looked into the code. See http://bazaar.launchpad.net/~jaap.karssenberg/zim/pyzim/view/head:/zim/applications.py Application#_lookup()
In Windows, _lookup() looks for the presence of '$launcher' and '$launcher.exe'. It should also look for these file extensions in addition to 'exe', which may be used to launch a command line tool: cmd, bat, vbs, py, pl, js, jar. (And others?)
Sorry I can't submit a patch because I don't quite understand the logic of this function. (What is the meaning of the 'else' clause following the 'for' statement? Is this legal?) |
|