1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 03:44:13 +01:00

Fixed external editor on Linux, maybe broke it for some other system?

This commit is contained in:
Martin Stubenschrott
2009-01-19 20:28:49 +01:00
parent 30db94b3db
commit 08dbdcb7ba
2 changed files with 8 additions and 2 deletions

View File

@@ -118,8 +118,13 @@ function IO() //{{{
try
{
path.appendRelativePath(self.expandPath(tail, true)); // FIXME: should only expand env vars and normalise path separators
if (path.exists() && path.normalize)
path.normalize();
// TODO: This code breaks the external editor at least in ubuntu
// because /usr/bin/gvim becomes /usr/bin/vim.gnome normalized and for
// some strange reason it will start without a gui then (which is not
// optimal if you don't start firefox from a terminal ;)
// Why do we need this code?
// if (path.exists() && path.normalize)
// path.normalize();
}
catch (e)
{