0

I'm having this problem with native messaging (Firefox): If my path to the native manifest (in the windows registry) json contains spaces

e.g. C:\src\Java Signing Addon\Setup\bin\native_manifest.json

then I get the familiar error you would get if using such path in windows cmd:

stderr output from native app lt.dlx.sign: 'C:\src\Java' is not recognized as an internal or external command

The same path works perfectly fine with Chrome

Now, if I wrap the path with double quotes, I get a different error:

"Win error 123 during operation open on file C:\src\Java Signing Addon\Setup\bin\native_manifest.json" (The filename, directory name, or volume label syntax is incorrect.)

Did a lot of googling, but nothing :/

Domas
  • 139
  • 3
  • 9
  • Could you post the content of `native_manifest.json`? – Beck Yang Nov 18 '16 at 12:52
  • `{ "name": "lt.dlx.sign", "description": "Test", "path": "run.bat", "type": "stdio", "allowed_extensions": [ "sign@doclogix.com" ] }` and the run.bat `@echo off java -cp "%~dp0/SignatureApplet.jar" %*` The same is used in Chrome, which works fine. – Domas Nov 18 '16 at 12:59

2 Answers2

1

You can try to add the window short name for the directory.

To discover it run the command dir /x . If you are adding it from a .bat you can use %~sdp0 to get the current path in a short form.

Also check this how to get DOS path instead of Windows path

Community
  • 1
  • 1
wribeiro
  • 36
  • 1
0

I have the same issue on Windows Firefox 50. Here is a bug for it https://bugzilla.mozilla.org/show_bug.cgi?id=1323148

Wilson Tian
  • 96
  • 1
  • 6