On Tue, 2004-02-10 at 16:11, Michael Pearce wrote:
> Just wanted to know what to populate the "Select Editor" menu with.
> (Note: teh editor related parts of the project will not be uploaded till
> later tonight)
If it was me I would either:
* Use the EDITOR or VISUAL environment variables [1],
* Use "/usr/bin/editor", which should point to the default editor,
or
* I'd get really fancy and query the MIME database for the
applications that handle "text/plain" [2].
Ok, if it was me I'd be using the last option (which does not require
the user to be running GNOME; KDE shares the same MIME-database [3].)
[1] Environment variables can be a security risk unless you are careful:
http://www-106.ibm.com/developerworks/linux/library/l-sp3.html
[2] http://makeashorterlink.com/?T29325B57 [gnome.org]
[3] http://www.freedesktop.org/Standards/shared-mime-info-spec
--
Michael JasonSmith http://www.ldots.org/