Add TODO comment.

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
This commit is contained in:
Tor Lillqvist 2008-06-10 10:34:02 +00:00 committed by Tor Lillqvist
parent cf524f48ca
commit c7b21acd7b
2 changed files with 17 additions and 0 deletions

View 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

View 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;
}