jlebon / textern

A Firefox add-on for editing text in your favourite external editor!
GNU General Public License v3.0
138 stars 21 forks source link

Firefox doesn't start textern.py #23

Closed phdru closed 6 years ago

phdru commented 6 years ago

FFox 57.0.2. I installed textern.py for one user (make install-native USER=1). In ~/.mozilla/native-messaging-hosts/textern.json everything looks ok. I changed shebang line in ~/.local/libexec/textern/textern.py because my python3.5 is not in the PATH. I tested it by running ~/.local/libexec/textern/textern.py — it works.

I added debugging output to textern.py:

if __name__ == "__main__":
    with open('/tmp/textern-debug.log', 'at') as debugfp:
        debugfp.write("start\n")

and tried to edit a TEXTAREA — the file was not created. I.e., FFox didn't start textern.py at all. When I ran it manually the log file was created.

phdru commented 6 years ago

I upgraded to Firefox 57.0.4 — and the extension now works! So it was a bug in Firefox. Thank you for the extension and sorry for the noise!