Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing happens when I press ctrl+shift+e #20

Open
joudinet opened this issue Dec 18, 2017 · 5 comments
Open

Nothing happens when I press ctrl+shift+e #20

joudinet opened this issue Dec 18, 2017 · 5 comments

Comments

@joudinet
Copy link

Hi,
I've just installed both the WebExtension (from official FF repo) and the native application by cloning this repo, and following the instructions, i.e., doing a sudo make native-install.
Unfortunately, pressing ctrl+shift+e does nothing. Not output on the console neither :-/
I'm on Ubuntu 17.10 and Firefox Quantum v57.0.1 (64bit):
$ python --version
2.7.14
$ python3 --version
3.6.3

Any idea how I can debug this issue?
I also use uMatrix as a FF extension. No idea if this might be related...

@jlebon
Copy link
Owner

jlebon commented Dec 20, 2017

Which editor are you using? Have you tried with something like ["gvim", "-f"] or ["gedit"]? Also try installing for your local user only rather than globally (make native-install USER=1).

@joudinet
Copy link
Author

I let the default value for external editor: ["gedit"]
I've just tried again, this time by installing for my local user instead of globally.
Installation seems ok but still nothing when I press "Ctrl+Shift+E" from a textarea:

$ make native-install USER=1
sed -e 's|@@NATIVE_PATH@@|/home/johan/.local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
mkdir -p /home/johan/.mozilla/native-messaging-hosts
cp -f native/textern.json /home/johan/.mozilla/native-messaging-hosts
mkdir -p /home/johan/.local/libexec/textern
cp -rf native/textern.py native/inotify_simple /home/johan/.local/libexec/textern

@jlebon
Copy link
Owner

jlebon commented Dec 21, 2017

Hmm, maybe try a different shortcut as well? Some distros have Ctrl+Shift+E mapped already. Also make sure you check the browser console (Ctrl+Shift+J), in case you were checking the page console only.

@fenix011
Copy link

Hi, same here ... , no joy, after :

Submodule 'native/inotify_simple' (https://github.com/chrisjbillington/inotify_simple) registered for path 'native/inotify_simple'
Cloning into '/home/jordi/Utils/textern/native/inotify_simple'...
remote: Enumerating objects: 166, done.        
remote: Total 166 (delta 0), reused 0 (delta 0), pack-reused 166        
Receiving objects: 100% (166/166), 35.92 KiB | 0 bytes/s, done.
Resolving deltas: 100% (101/101), done.
Submodule path 'native/inotify_simple': checked out '979648cefa83dda61611ed9d8fb1fe4b644950be'
jordi@tao:~/Utils$ cd textern/
jordi@tao:~/Utils/textern$ echo sudo make native-install
sudo make native-install
jordi@tao:~/Utils/textern$ ls
LICENSE  Makefile  native  README.md  webex
jordi@tao:~/Utils/textern$ ls native/
inotify_simple  textern.json.in  textern.py
jordi@tao:~/Utils/textern$ sudo make native-install
sed -e 's|@@NATIVE_PATH@@|/usr/local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
mkdir -p /usr/lib64/mozilla/native-messaging-hosts
cp -f native/textern.json /usr/lib64/mozilla/native-messaging-hosts
mkdir -p /usr/local/libexec/textern
cp -rf native/textern.py native/inotify_simple /usr/local/libexec/textern
jordi@tao:~/Utils/textern$ make native-install USER=1
sed -e 's|@@NATIVE_PATH@@|/home/jordi/.local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
/bin/sh: 1: cannot create native/textern.json: Permission denied
Makefile:24: recipe for target 'native/textern.json' failed
make: *** [native/textern.json] Error 2
jordi@tao:~/Utils/textern$ sudo make native-install USER=1
sed -e 's|@@NATIVE_PATH@@|/root/.local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
mkdir -p /root/.mozilla/native-messaging-hosts
cp -f native/textern.json /root/.mozilla/native-messaging-hosts
mkdir -p /root/.local/libexec/textern
cp -rf native/textern.py native/inotify_simple /root/.local/libexec/textern

pressing Ctrl+S+E does nothing. I tried changing the keyboard shortcut mapping.

What am i missing ?

@EskoJTH
Copy link

EskoJTH commented Mar 7, 2019

@JordiLA maybe try Ctrl+Alt+e instead. You realize that S is probably interpreted as the letter s and not as Shift. Make sure you have gedit installed? Also when you run "sudo make native-install USER=1" you install the textern for the user "root" not your user "jordi". This means that the Firefox probably won't find the user specific installation (but the global version should be there already). Be sure to have the firefox extension settings in correct format. I don't understand why you get that permissions error there. Seems like for some reason some of the file permissions under the repo you pulled are the incorrectly. If you ran git clone as sudo then that might have caused something weird. Check the file permissions with ls -l and if it says "... root root ..." there in some files instead of "... jordi jodri ..." then that is probably a problem. Just remove the repo and install it again without sudo in that case. It is a bad habit to be showing sudo everywhere anyway. Also note that the hotkey command does not work on all text boxes. The comment text area here on github seems to be one where it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants