X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=blobdiff_plain;f=explorer%2Fsrc%2FExplorerWindow.ec;h=20747eeb75d4daf25b2c876b464242fd72fc3014;hp=38b30b6efc6e98f4dc24f030597e0d68f91a555a;hb=59e63906501cec039fc6bd236e3fa430d31d6b77;hpb=7026df30146176cf9fe585a33f3539d4f299515e diff --git a/explorer/src/ExplorerWindow.ec b/explorer/src/ExplorerWindow.ec index 38b30b6..20747ee 100644 --- a/explorer/src/ExplorerWindow.ec +++ b/explorer/src/ExplorerWindow.ec @@ -125,6 +125,13 @@ class ExplorerWindow : Window case goBack: case goForward: break; + case goHome: + { + char * home = getenv("HOME"); + if(home && home[0] && FileExists(home).isDirectory) + view.path = home; + break; + } case goUp: { char * path = view.path; @@ -298,6 +305,7 @@ class ExplorerWindow : Window { if(node.type.isFile) { + #ifndef __WIN32__ char command[MAX_LOCATION]; /*_FileType t = node.type; if(t == ewsFile || t == epjFile || @@ -308,7 +316,10 @@ class ExplorerWindow : Window sprintf(command, "ide %s", node.path); /*else sprintf(command, "%s", node.path);*/ - ShellOpen(command); + Execute(command); + #else + ShellOpen(node.path); + #endif } return true; }