FigureJ - Inkscape panel / external tools

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

FigureJ - Inkscape panel / external tools

gankaku
Hi Jerome, hi all,

I wanted to mention that in my case (Windows 7, 64-bit, Fiji (IJ v1.47n, FigureJ 1.01b3), the "Preferences..." Command in the Menu does not appear by default but only after "Refresh Menus". That is no big deal but if one does not know this Option exists he/she might miss it.

Furthermore, my FigureJ was not able to find Inkscape (version: 0.48.4 r9939)
Error Message: Cannot run program "open": CreateProcess error=2, System cannot find the specified files.
Alternatively, if the error message does not occur, a small but empty panel with the title "Linking to external software" appears but the button panel to create/grap/open inkscape does not appear in this case.

I tried to set the Inkscape path in all potential manners that occurred to my mind but the error persisted (e.g. C:\Program Files\Inkscape\incskape.exe)

Is there a special syntax to set the programs path correctly?

Thanks for any suggestions in advance,
Jan

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: FigureJ - Inkscape panel / external tools

Jerome Mutterer-3
Hi Jan !
Thank you for your message and bug report.

> "Preferences..." Command in the Menu does not appear by default but only
after "Refresh Menus"

This has been reported to Fiji bugzilla.
http://fiji.sc/bugzilla/show_bug.cgi?id=577 I added you to the CC list for
this bug.


> Furthermore, my FigureJ was not able to find Inkscape (version: 0.48.4
r9939)

This, I think, is related to the paths no being escaped properly in the
command that is supposed to launch Inkscape.
You can see this here:
https://github.com/mutterer/figurej/blob/master/src/macros/inkscapeNotify.ijm#L9

I'll fix this, but I have no windows system at hand right now, and won't be
able to do it until next week. If you want to submit a patch, you're
welcome!

Jerome


On 12 April 2013 11:58, Jan Brocher <[hidden email]> wrote:

> Hi Jerome, hi all,
>
> I wanted to mention that in my case (Windows 7, 64-bit, Fiji (IJ v1.47n,
> FigureJ 1.01b3), the "Preferences..." Command in the Menu does not appear
> by default but only after "Refresh Menus". That is no big deal but if one
> does not know this Option exists he/she might miss it.
>
> Furthermore, my FigureJ was not able to find Inkscape (version: 0.48.4
> r9939)
> Error Message: Cannot run program "open": CreateProcess error=2, System
> cannot find the specified files.
> Alternatively, if the error message does not occur, a small but empty
> panel with the title "Linking to external software" appears but the button
> panel to create/grap/open inkscape does not appear in this case.
>
> I tried to set the Inkscape path in all potential manners that occurred to
> my mind but the error persisted (e.g. C:\Program
> Files\Inkscape\incskape.exe)
>
> Is there a special syntax to set the programs path correctly?
>
> Thanks for any suggestions in advance,
> Jan
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: FigureJ - Inkscape panel / external tools

Jerome Mutterer-3
Hi again,

Jan, more precisely:

https://github.com/mutterer/figurej/blob/master/src/macros/inkscapeNotify.ijm#L9
shows how an svg panel is opened, after it's path is passed to this macro
from the Inkscape_Link plugin:
https://github.com/mutterer/figurej/blob/master/src/plugIns/Inkscape_Link.java#L99

and the following line
https://github.com/mutterer/figurej/blob/master/src/macros/inkscapeNotify.ijm#L12
shows how I had to hack into the application package to pass parameters to
inkscape to use a command that requires several parameters that could not
be passed to the Inkscape.app directly.

All this is currently very mac-specific as you can see.
I opened a GitHub issue for this:
https://github.com/mutterer/figurej/issues/1 where I will post progress.

Jerome



On 12 April 2013 13:08, Jerome Mutterer <
[hidden email]> wrote:

>  Hi Jan !
>> Thank you for your message and bug report.
>>
>> > "Preferences..." Command in the Menu does not appear by default but
>> only after "Refresh Menus"
>>
>> This has been reported to Fiji bugzilla.
>> http://fiji.sc/bugzilla/show_bug.cgi?id=577 I added you to the CC list
>> for this bug.
>>
>>
>> > Furthermore, my FigureJ was not able to find Inkscape (version: 0.48.4
>> r9939)
>>
>> This, I think, is related to the paths no being escaped properly in the
>> command that is supposed to launch Inkscape.
>> You can see this here:
>> https://github.com/mutterer/figurej/blob/master/src/macros/inkscapeNotify.ijm#L9
>>
>> I'll fix this, but I have no windows system at hand right now, and won't
>> be able to do it until next week. If you want to submit a patch, you're
>> welcome!
>>
>> Jerome
>>
>>
>> On 12 April 2013 11:58, Jan Brocher <[hidden email]> wrote:
>>
>>> Hi Jerome, hi all,
>>>
>>> I wanted to mention that in my case (Windows 7, 64-bit, Fiji (IJ v1.47n,
>>> FigureJ 1.01b3), the "Preferences..." Command in the Menu does not appear
>>> by default but only after "Refresh Menus". That is no big deal but if one
>>> does not know this Option exists he/she might miss it.
>>>
>>> Furthermore, my FigureJ was not able to find Inkscape (version: 0.48.4
>>> r9939)
>>> Error Message: Cannot run program "open": CreateProcess error=2, System
>>> cannot find the specified files.
>>> Alternatively, if the error message does not occur, a small but empty
>>> panel with the title "Linking to external software" appears but the button
>>> panel to create/grap/open inkscape does not appear in this case.
>>>
>>> I tried to set the Inkscape path in all potential manners that occurred
>>> to my mind but the error persisted (e.g. C:\Program
>>> Files\Inkscape\incskape.exe)
>>>
>>> Is there a special syntax to set the programs path correctly?
>>>
>>> Thanks for any suggestions in advance,
>>> Jan
>>>
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>
>>
>>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html