Zim

Activity log for bug #987572

Date Who What changed Old value New value Message
2012-04-23 23:58:44 Brendan Kidwell bug added bug
2012-04-23 23:59:29 Brendan Kidwell summary Application class doesn't find plugin executable exists in Windows Windows: Application class says plugin executable doesn't exist
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?)
2012-12-17 10:44:07 Jaap Karssenberg zim: status New Confirmed
2012-12-17 10:44:09 Jaap Karssenberg zim: importance Undecided Medium
2012-12-17 10:44:36 Jaap Karssenberg summary Windows: Application class says plugin executable doesn't exist Allow customizing plugin external commands
2013-04-30 14:00:05 Jaap Karssenberg zim: status Confirmed In Progress