Re: Fedora 33 System-Wide Change proposal: Make nano the default editor

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

 



On Thu, Jun 25, 2020 at 3:41 PM Ian McInerney <Ian.S.McInerney@xxxxxxxx> wrote:
>>
>> ...snip...
>> == Scope ==
>> * Proposal owners:
>> ** Modify comps to include nano Fedora wide.
>> ** Create a new subpackage of <code>nano</code>, called
>> <code>nano-editor</code>.
>> ** <code>nano-editor</code> to include
>> <code>/usr/lib/environment.d/10-nano.conf</code>, which sets
>> <code>$EDITOR</code> to <code>nano</code>.
>>
>> With this approach, if <code>nano</code> is uninstalled, the
>> configuration will be removed with it. At the same time, installing
>> nano on its own won't install the conf.
>>
>
> Are you sure this will work? I just ran a test, and putting a new config file inside /usr/lib/environment.d only works for Gnome, and doesn't work for Mate, Cinnamon or SSH (tested by opening a terminal in the respective session and examining the environment variables). From what I gather in [1], systemd is not a standard way of interacting with the user's environment variables, and only Gnome has decided to use it. So this method of implementing this change seems to be making the default editor for Gnome be nano and not changing the defaults for anyone else.
>

We might want to do this as a profile.d snippet for all the major
shells: bash/ksh, zsh, csh, and fish. That should work basically
everywhere, afaik.



-- 
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux