xcontainers.org>
Sent: Monday, November 27, 2017 1:06:56 PM
Subject: Re: [lxc-users] Snap 2.20 - Default Text Editor
Thanks for the clarification, Stephane.
I was actually unaware that snaps couldn't interact with binaries outside of
the ones it owns. Makes sense and adds some security. That being s
riday, November 24, 2017 2:44:27 AM
Subject: Re: [lxc-users] Snap 2.20 - Default Text Editor
Because of the way the snap works, it doesn't actually have access to
your system's filesystem and so can't run commands from your system.
Only binaries that are part of the snap or the minimal copy
Can you check if you VISUAL environment variable is set to vi?
Here's the relevant code for opening the text editor in lxd:
https://github.com/lxc/lxd/blob/70ce5ff10417133417fdfd611a7ec148e4590a44/shared/util.go#L596
Benjamin
On 2017-11-22 01:45, Lai Wei-Hwa wrote:
> $ lxc profile edit
t;Ron Kelley" <rkelley...@gmail.com>
To: "lxc-users" <lxc-users@lists.linuxcontainers.org>
Sent: Tuesday, November 21, 2017 10:07:32 PM
Subject: Re: [lxc-users] Snap 2.20 - Default Text Editor
sudo update-alternatives --config editor
http://vim.wikia.com/wiki/Set_Vim
;
> - Original Message -
> From: "Björn Fischer" <b...@cebitec.uni-bielefeld.de>
> To: "lxc-users" <lxc-users@lists.linuxcontainers.org>
> Sent: Tuesday, November 21, 2017 7:46:58 PM
> Subject: Re: [lxc-users] Snap 2.20 - Default Text Editor
>
Thanks, but that's the problem, it's still opening in VI
Thanks!
Lai
- Original Message -
From: "Björn Fischer" <b...@cebitec.uni-bielefeld.de>
To: "lxc-users" <lxc-users@lists.linuxcontainers.org>
Sent: Tuesday, November 21, 2017 7:46:58 PM
Subject: Re:
Hi,
> $ lxc profile edit default
> Opens in VI even though my editor is nano (save the flaming)
>
> How can we edit the default editor?
$ EDITOR=nano
$ export EDITOR
Cheers,
Björn
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
$ lxc profile edit default
Opens in VI even though my editor is nano (save the flaming)
How can we edit the default editor?
Best Regards,
Lai Wei-Hwa
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org