[forge-issues] [JBoss JIRA] (FORGE-466) Use "gnome-open" instead of "gedit" for edit command on Linux

Dan Allen (JIRA) jira-events at lists.jboss.org
Sat Jan 28 02:54:48 EST 2012


Dan Allen created FORGE-466:
-------------------------------

             Summary: Use "gnome-open" instead of "gedit" for edit command on Linux
                 Key: FORGE-466
                 URL: https://issues.jboss.org/browse/FORGE-466
             Project: Forge
          Issue Type: Enhancement
          Components: Builtin Plugins
    Affects Versions: 1.0.0.Beta5
            Reporter: Dan Allen
            Priority: Minor


Use the more generic "gnome-open" to edit a file rather than "gedit". This is a very simple, one-line fix that can provide the ability to use an alternate editor in the short term until a formal configuration solution is implemented.

sed -i 's/gedit/gnome-open/' shell/src/main/java/org/jboss/forge/shell/plugins/builtin/EditPlugin.java

You may want to take it one step further and check if gnome-open is there. If not, try kde-open. As a last resort, you can just open the file normally (like the view plugin).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-issues mailing list