From 7026df30146176cf9fe585a33f3539d4f299515e Mon Sep 17 00:00:00 2001 From: Rejean Loyer Date: Wed, 14 Sep 2011 20:34:22 -0400 Subject: [PATCH 1/1] explorer: attemp at opening files with desktop environment's file associations. --- explorer/src/ExplorerWindow.ec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/explorer/src/ExplorerWindow.ec b/explorer/src/ExplorerWindow.ec index 2a61c01..38b30b6 100644 --- a/explorer/src/ExplorerWindow.ec +++ b/explorer/src/ExplorerWindow.ec @@ -299,8 +299,15 @@ class ExplorerWindow : Window if(node.type.isFile) { char command[MAX_LOCATION]; - char * t = node.path; - sprintf(command, "ide %s", node.path); + /*_FileType t = node.type; + if(t == ewsFile || t == epjFile || + t == ecFile || t == ehFile || + t == cppFile || t == hppFile || + t == cFile || t == hFile || + t == textFile || t == webFile)*/ + sprintf(command, "ide %s", node.path); + /*else + sprintf(command, "%s", node.path);*/ ShellOpen(command); } return true; -- 1.8.3.1