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

failed to edit cheatsheet: fork/exec /usr/bin/editor: permission denied #13

Open
YueRen opened this issue Apr 8, 2023 · 3 comments
Open
Labels
bug Something isn't working

Comments

@YueRen
Copy link

YueRen commented Apr 8, 2023

A description of the problem
I am using Ubuntu 22.04 and just installed cheat via snap. Upon trying to edit a cheatsheet, I get the following error:

foo@asdf:~$ cheat -e yt-dlp
failed to edit cheatsheet: fork/exec /usr/bin/editor: permission denied

I am semi-sure this is caused by snap restricting the rights of the packages it installs. I do not have the error above when using the downloaded binaries

cheat version info

foo@asdf:~$ cheat -v
4.4.0
@YueRen YueRen added the bug Something isn't working label Apr 8, 2023
@bernermic
Copy link
Collaborator

Hi @YueRen
your assumption is correct. What editor are you using?
The snap supports vim and nano.

@YueRen
Copy link
Author

YueRen commented Apr 8, 2023

@bernermic The error seems to be editor-independent

I remember trying to change editor: /usr/bin/editor to editor: emacs in .config/cheat/conf.yml to no avail.

/usr/bin/editor is nano 6.2 on my system.

@chrisallenlane chrisallenlane transferred this issue from cheat/cheat Dec 13, 2023
@chrisallenlane
Copy link
Member

I've transferred this from cheat/cheat, given that this pertains to the Snap specifically. The answer to this issue may simply be that only vim and nano are supported, and if that's the case, feel free to close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants