From c7b21acd7bf3e17ac0a8e90015d5ea34a6f3e2d7 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 10 Jun 2008 10:34:02 +0000 Subject: [PATCH] Add TODO comment. 2008-06-10 Tor Lillqvist * gcontenttype.c (g_content_type_can_be_executable) [Win32]: Add TODO comment. svn path=/trunk/; revision=6979 --- gio/ChangeLog | 5 +++++ gio/gcontenttype.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index ef6f8f25d..7b6472531 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-06-10 Tor Lillqvist + + * gcontenttype.c (g_content_type_can_be_executable) [Win32]: Add + TODO comment. + 2008-06-09 Matthias Clasen * xdgmime/Makefile.am: Fix the build diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c index fcc7fa2fe..c5bb6185d 100644 --- a/gio/gcontenttype.c +++ b/gio/gcontenttype.c @@ -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; }