Add TODO comment.
authorTor Lillqvist <tml@novell.com>
Tue, 10 Jun 2008 10:34:02 +0000 (10:34 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 10 Jun 2008 10:34:02 +0000 (10:34 +0000)
2008-06-10  Tor Lillqvist  <tml@novell.com>

* gcontenttype.c (g_content_type_can_be_executable) [Win32]: Add
TODO comment.

svn path=/trunk/; revision=6979

gio/ChangeLog
gio/gcontenttype.c

index ef6f8f25db845a645247a53f0162a80a2bd30a46..7b64725317c927b0030358115317a914a45f9b30 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-10  Tor Lillqvist  <tml@novell.com>
+
+       * gcontenttype.c (g_content_type_can_be_executable) [Win32]: Add
+       TODO comment.
+
 2008-06-09  Matthias Clasen  <mclasen@redhat.com>
 
        * xdgmime/Makefile.am: Fix the build
index fcc7fa2feba5aca35b83faf401852dfea6401ea4..c5bb6185df7b6666cd3b248106a1752fb3c91104 100644 (file)
@@ -203,6 +203,18 @@ g_content_type_can_be_executable (const char *type)
       strcmp (type, ".com") == 0 ||
       strcmp (type, ".bat") == 0)
     return TRUE;
+
+  /* TODO: Also look at PATHEXT, which lists the extensions for
+   * "scripts" in addition to those for true binary executables.
+   *
+   * (PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH for me
+   * right now, for instance). And in a sense, all associated file
+   * types are "executable" on Windows... You can just type foo.jpg as
+   * a command name in cmd.exe, and it will run the application
+   * associated with .jpg. Hard to say what this API actually means
+   * with "executable".
+   */
+
   return FALSE;
 }