I would like to snap some cli applications which use $EDITOR
to allow the user to modify files.
Now, while can be possible to just embed a simple editor in the snap and override $EDITOR
, is there any nice way to make possible to edit a file using the host editor using a portal-like method?
Using xdg-open
isn’t an option because:
- may be bound to a graphical application
- it’s normally returning earlier so the calling app may consider the editing done earlier.