explorer: attemp at opening files with desktop environment's file associations.
[ede] / explorer / src / ExplorerWindow.ec
index b29363c..38b30b6 100644 (file)
@@ -16,7 +16,11 @@ enum ExplorerToolId
 
 class ExplorerWindow : Window
 {
+#ifdef _DEBUG
+   text = "Ecere Explorer (Debug)";
+#else
    text = "Ecere Explorer";
+#endif
    background = activeBorder;
    borderStyle = sizable;
    hasMaximize = true;
@@ -295,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;