[GH-ISSUE #1257] How do I allow qutebrowser to access its external editor (URxvt with Vim)? #857

Closed
opened 2026-05-05 06:59:07 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @Hund on GitHub (Apr 29, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1257

How do I allow qutebrowser to access its external editor (URxvt with Vim)? Is it possible?

Originally created by @Hund on GitHub (Apr 29, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1257 How do I allow qutebrowser to access its external editor (URxvt with Vim)? Is it possible?
gitea-mirror 2026-05-05 06:59:07 -06:00
Author
Owner

@cryzed commented on GitHub (Apr 30, 2017):

Unless you are using some custom profile accessing/executing other executables should "just work". What is the problem exactly?

<!-- gh-comment-id:298262289 --> @cryzed commented on GitHub (Apr 30, 2017): Unless you are using some custom profile accessing/executing other executables should "just work". What is the problem exactly?
Author
Owner

@Hund commented on GitHub (Apr 30, 2017):

With qutebrowser you can either just input text in the regular inputbox on the website, but you can also launch your favourite editor and edit the text there. And when you save and exit the editor, the text get put here.

But when I try to launch my editor (via qutebrowser) I only get the error message Editor exited with status 127.. Which I guess is because the browser is not allowed to execute the binary file for URxvt?

<!-- gh-comment-id:298262657 --> @Hund commented on GitHub (Apr 30, 2017): With qutebrowser you can either just input text in the regular inputbox on the website, but you can also launch your favourite editor and edit the text there. And when you save and exit the editor, the text get put here. But when I try to launch my editor (via qutebrowser) I only get the error message `Editor exited with status 127.`. Which I guess is because the browser is not allowed to execute the binary file for URxvt?
Author
Owner

@SYN-cook commented on GitHub (Apr 30, 2017):

Could you try to run firejail --noblacklist=${PATH}/urxvtc qutebrowser and let us know if it worked?

<!-- gh-comment-id:298264068 --> @SYN-cook commented on GitHub (Apr 30, 2017): Could you try to run `firejail --noblacklist=${PATH}/urxvtc qutebrowser` and let us know if it worked?
Author
Owner

@Hund commented on GitHub (May 1, 2017):

That didn't work.

14:49:00 ERROR: Editor exited with status 127.
14:49:00 ERROR: Process stderr:
urxvt: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
<!-- gh-comment-id:298328814 --> @Hund commented on GitHub (May 1, 2017): That didn't work. ``` 14:49:00 ERROR: Editor exited with status 127. 14:49:00 ERROR: Process stderr: urxvt: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory ```
Author
Owner

@SYN-cook commented on GitHub (May 1, 2017):

Ok, I am sorry, but that output is helpful indeed. Could you then try the following?

mkdir ~/.config/firejail
cp /etc/firejail/qutebrowser.profile ~/.config/firejail

and in ~/.config/firejail/qutebrowser.profile you comment out include /etc/firejail/disable-devel.inc. If that is not enough to get everything running, you can insert at the beginning of the file:

noblacklist=${PATH}/urxvtc
noblacklist=${PATH}/urxvtcd
<!-- gh-comment-id:298418309 --> @SYN-cook commented on GitHub (May 1, 2017): Ok, I am sorry, but that output is helpful indeed. Could you then try the following? ``` mkdir ~/.config/firejail cp /etc/firejail/qutebrowser.profile ~/.config/firejail ``` and in ~/.config/firejail/qutebrowser.profile you comment out `include /etc/firejail/disable-devel.inc`. If that is not enough to get everything running, you can insert at the beginning of the file: ``` noblacklist=${PATH}/urxvtc noblacklist=${PATH}/urxvtcd ```
Author
Owner

@Hund commented on GitHub (May 1, 2017):

It works with commenting that line out. :) Thanks!

<!-- gh-comment-id:298421492 --> @Hund commented on GitHub (May 1, 2017): It works with commenting that line out. :) Thanks!
Author
Owner

@Hund commented on GitHub (May 2, 2017):

I just noticed that I can't use aspell via Vim when I launch Vim via qutebrowser. :/

<!-- gh-comment-id:298704201 --> @Hund commented on GitHub (May 2, 2017): I just noticed that I can't use aspell via Vim when I launch Vim via qutebrowser. :/
Author
Owner

@SYN-cook commented on GitHub (May 3, 2017):

You could go back to ~/.config/firejail/qutebrowser.profile and append whitelist ~/.vimrc (or whatever the path to your vimrc is) at the end, assuming you have set up automatic spell checking through this file.

If that does not work, however, I guess it will be best to open a new issue here.

<!-- gh-comment-id:298885739 --> @SYN-cook commented on GitHub (May 3, 2017): You could go back to ~/.config/firejail/qutebrowser.profile and append `whitelist ~/.vimrc` (or whatever the path to your vimrc is) at the end, assuming you have set up automatic spell checking through this file. If that does not work, however, I guess it will be best to open a new issue here.
Author
Owner

@Hund commented on GitHub (May 3, 2017):

That worked! Didn't think of that. :)

<!-- gh-comment-id:298978046 --> @Hund commented on GitHub (May 3, 2017): That worked! Didn't think of that. :)
Author
Owner

@Hi-Angel commented on GitHub (Oct 6, 2017):

So, how do I run an external editor anyway? E.g. in pentadactyl it's Control-i for Insert mode.

This thread is the first result on Google, and the rest results are also issues, so I suspect it's an undocumented hotkey, yet everyone here seem to know it…

<!-- gh-comment-id:334866529 --> @Hi-Angel commented on GitHub (Oct 6, 2017): So, how do I run an external editor anyway? E.g. in pentadactyl it's <kbd>Control</kbd>-<kbd>i</kbd> for **Insert** mode. This thread is the first result on Google, and the rest results are also issues, so I suspect it's an undocumented hotkey, yet everyone here seem to know it…
Author
Owner

@Hi-Angel commented on GitHub (Oct 6, 2017):

Yay, I occasionally found it on this page. The hotkey is Ctrl-e. Dunno why isn't this page in Google results.

<!-- gh-comment-id:334883850 --> @Hi-Angel commented on GitHub (Oct 6, 2017): Yay, I occasionally found it [on this page](https://github.com/qutebrowser/qutebrowser/blob/master/doc/faq.asciidoc). The hotkey is <kbd>Ctrl</kbd>-<kbd>e</kbd>. Dunno why isn't this page in Google results.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#857
No description provided.