Allow customizing plugin external commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
In Progress
|
Medium
|
Unassigned |
Bug 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\
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://
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?)
summary: |
- Application class doesn't find plugin executable exists in Windows + Windows: Application class says plugin executable doesn't exist |
description: | updated |
I was viewing rev 534 of applications.py which corresponds to release 0.56.