Open darktrojan opened 7 years ago
I get this error message:
No such native application open_with NativeMessaging.jsm:100 this.NativeApp</this.startupPromise< resource://gre/modules/NativeMessaging.jsm:100:9
That's a variation on the first one, but for Linux (possibly Mac too, not sure). The install step should add a file at ~/.mozilla/native-messaging-hosts/open_with.json
.
Oh, I forgot to mention that I'm using Windows 10.
Huh. I can't make it say that.
Oh okay, it's the first one with different words for Firefox 57. I wrote this using Firefox 56.
Sorry to say but instructions are not clear. I ended up with:
C:\Users...\AppData\Local\Temp\open_with_windows.py install File "
", line 1 C:\Users...\AppData\Local\Temp\open_with_windows.py install ^ SyntaxError: unexpected character after line continuation character
Sorry @victor-50, your message got lost in a deluge of email lately. That's a Python error message, but the first line should be in a command prompt, so it looks like you're entering it in the wrong place. The guide I've just posted (#184) should see you right. Also note that you're going to need the file, so having it in the "Temp" folder isn't a good idea.
@darktrojan I am getting the same message as @krisu5 on Windows 10 (FF 59.0.2) except my issue is that the .py file stops being found when I close and restart Firefox. I have to re-install the .py file every time I open Firefox for it to work.
EDIT: Nevermind. I'd created the registry key incorrectly.
EDIT2: Also, it seems the Microsoft Store version of Python is unable to interact with the registry (read or write), despite not throwing any errors when registry operations are attempted. Might be worth noting somewhere.
Having some trouble with the install on Windows. The registry key wasn't being created for whatever reason, though no error was occurring in the script. I created the intended registry entry in RegEdit (ie. HKEY_CURRENT_USER\Mozilla\NativeMessagingHosts\open_with = [path-to-json-file]), but it's still showing the "No such native application" error.
Fresh installation of Windows 10 1903, Firefox 67.0.1, Python 3.7.3 (from Microsoft Store).
Your Open With options page might give you this message:
If that happens, open the Browser Console by clicking on the menu button, then Web Developer, then Browser Console. Here are the messages you might see there and what they mean.
or
This means you either haven't run the install step (
open_with_windows.py install
) at all, you've moved the files since installing, or it failed to add itself correctly to the Windows Registry.There is a slight bug in the installer which might cause the last one in very specific circumstances, in which case get a new version of the .py file from this link and run the install step again.
You've moved the files. Run the install step again.
Python can't find the file. Unlikely, since if you've got this far, at least two of the files are in the right place. Any message that starts in the same way is output from Python and should hopefully have some useful information.
What you should have if everything is installed correctly:
Windows:
open_with_windows.py
that you got from the options page.open_with.bat
in the same folder. This points to the .py file.open_with_firefox.json
in the same folder. This points to the .bat file.HKEY_CURRENT_USER\Software\Mozilla\NativeMessagingHosts\open_with
, which points to the .json file.Linux:
open_with_linux.py
that you got from the options page.open_with.json
in~/.mozilla/native-messaging-hosts
. This points to the .py file.Mac:
open_with_mac.py
that you got from the options page.open_with.json
in~/Library/Application Support/Mozilla/NativeMessagingHosts
. This points to the .py file.The same apply if you're using Chrome or Chromium instead of Firefox, except the parts where it says Mozilla, substitute Google/Chrome instead.