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;
- char * newPath = new char[strlen(path)];
+ char * newPath = new char[strlen(path)+1];
StripLastDirectory(path, newPath);
if(!newPath[0])
{
{
if(node.type.isFile)
{
+ #ifndef __WIN32__
char command[MAX_LOCATION];
/*_FileType t = node.type;
if(t == ewsFile || t == epjFile ||
sprintf(command, "ide %s", node.path);
/*else
sprintf(command, "%s", node.path);*/
- ShellOpen(command);
+ Execute(command);
+ #else
+ ShellOpen(node.path);
+ #endif
}
return true;
}