On 15/05/14 05:32 AM, Suvayu Ali wrote:
On Wed, May 14, 2014 at 01:52:11PM -0400, Frank McCormick wrote:
I have tried suggestions from Googling including exporting EDITOR in
$HOME/bashrc...running select-editor ( doesn't appear to be on Fedora )and
creating a .select_editor text file in HOME. None have worked so
far.
If I open a terminal first then m-c loads the proper editor...but if I
call m-c from a desktop file which loads a terminal, then loads m-c with the
-e option then vi is loaded.
When you open a terminal and run mc yourself, bash is run in interactive
mode. Whereas using the desktop file is not. Since you set the value
of EDITOR in ~/.bashrc, only the interactive knows about it (see the
"Invocation" section in man bash). All environment variable related
setup should go in ~/.bash_profile. If you use multiple kinds of
sh-like shells, it should be ~/.profile. This way your whole session
inherits the environment.
Hope this helps,
Putting it in ~/.profile (which didn't exist before) works.
Thanks for the help
--
1984 was not meant as a blueprint for
democratic governments.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org