cheat / snap

Snap recipe for cheat
Other
12 stars 4 forks source link

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

Open YueRen opened 1 year ago

YueRen commented 1 year ago

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
bernermic commented 1 year ago

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

YueRen commented 1 year ago

@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 commented 10 months ago

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.