Open diamond-lizard opened 6 years ago
I don't know why, but if I wrap the code inside the with
clause in textern.py
's main()
inside a try ... except
, it works (in some places, at least). Here's the code:
def main():
with INotify() as ino, TmpManager() as tmp_mgr:
try:
ino.add_watch(tmp_mgr.tmpdir, flags.CLOSE_WRITE)
loop = asyncio.get_event_loop()
loop.add_reader(sys.stdin.buffer, handle_stdin, tmp_mgr)
loop.add_reader(ino.fd, handle_inotify_event, ino, tmp_mgr)
loop.run_forever()
loop.close()
except Exception as e:
raise e
Without this change, the behavior is as I described in my original issue report above. With the change, I've tested that this works here in this GitHub issue report text form, and in a text form on the old Reddit https://old.reddit.com/r/firefox/submit
But it still doesn't work in the new Reddit: https://www.reddit.com/r/firefox/submit
There it just prints "e" inside the text form when I hit Ctrl+Shift+e
. It's as if it's not even recognizing that I'm sending the keystroke.
I just installed the textern extension and did:
I changed textern's "External editor" option to:
and the shortcut to:
Then I restarted Firefox, and in a text form I typed
Ctrl+Shift+E
which only resulted in the letter "e" being typed in to the text form.No editor started up, but Firefox showed this error:
I am on Firefox 60.3.0esr (64-bit) on Gentoo Linux.