[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PARTIAL success - was [Re: Adding/modifying users under MATE DE]



On 02/06/2019 03:29 PM, tomas@tuxteam.de wrote:
On Wed, Feb 06, 2019 at 01:47:26PM -0600, Richard Owlett wrote:
On 02/04/2019 12:29 PM, Richard Owlett wrote:

[...]

If [as root] I do   > export EDITOR=/usr/bin/pluma
before
   > visudo
things *approximately* work ;/

Pluma, not nano, is invoked.

Not bad :-)

$EDITOR is not preserved across sessions.

This is to be expected: this "export... " is only good for this
one shell session.

I've seen mention of a remedy, but the reference is missing at moment.

Most probably you should add

   export EDITOR=/usr/bin/pluma

to your /etc/profile (for all users) or to $HOME/.xsession (for one
specific user). Don't know for sure whether MATE picks that up there
(others might chime in).

My attempt at that failed :{

HOWEVER *GRIN*
I came across galternatives {A front-end to the update-alternatives}.
Related links include:    > https://wiki.debian.org/TextEditor
   > https://wiki.debian.org/DebianAlternatives
> https://debian-administration.org/article/91/Using_the_Debian_alternatives_system
   > https://lists.debian.org/debian-user/2002/08/msg02808.html
   > https://packages.debian.org/stretch/galternatives
> https://manpages.debian.org/stretch/galternatives/galternatives.1.en.html
   > https://ubuntuforums.org/showthread.php?t=1451141

Now to explore "What can sudo do for me".



Reply to: