Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Proper support for user selected text editor on linux #259
When prompted to "Open Exception Log in Text Editor", I always find that COSMOS tries to invoke gedit, which is not installed on my debian system. I expected it to use the EDITOR or VISUAL environment variable.
I tracked the problem down to the test for
On my system,
My workaround was to change the test from
if which_gedit =~ /Command not found/i or which_gedit =~ /no .* in/i
if which_gedit == ""
However, I think that the logic should be as follows:
if $VISUAL or $EDITOR exists
That is, EDITOR or VISUAL should take precedence over gedit. The use of VISUAL here assumes that it represents an X windows editor such as gedit.