aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--NEWS1
-rw-r--r--src/mimeview.c6
4 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 3da8b15e..fe6bf743 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-11-14
+ * src/mimeview.c: mimeview_view_file(): win32: use g_file_test() to
+ detect common executable suffix.
+
+2005-11-14
+
* libsylph/mh.c
libsylph/mbox.c
src/compose.c: always set FolderItem::mtime to 0 if the folder
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 7839e4cc..c845d5ba 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2005-11-14
+ * src/mimeview.c: mimeview_view_file(): win32: 一般的な実行ファイルの
+ 拡張子は g_file_test() で検出するようにした。
+
+2005-11-14
+
* libsylph/mh.c
libsylph/mbox.c
src/compose.c: フォルダの内容が変更された場合常に FolderItem::mtime
diff --git a/NEWS b/NEWS
index 2aca55c5..77004bd9 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ Changes of Sylpheed
* Win32: PGP sign and encryption was supported.
* Win32: The window focus problem of account and filter setting dialog
was fixed.
+ * Win32: The method of detecting executables was modified.
* 2.1.6 (development)
diff --git a/src/mimeview.c b/src/mimeview.c
index b70b775b..a23c058b 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -1123,13 +1123,9 @@ static void mimeview_view_file(const gchar *filename, MimeInfo *partinfo,
if (!cmdline) {
DWORD dwtype;
- if (str_has_suffix_case(filename, ".exe") ||
- str_has_suffix_case(filename, ".com") ||
+ if (g_file_test(filename, G_FILE_TEST_IS_EXECUTABLE) ||
str_has_suffix_case(filename, ".scr") ||
str_has_suffix_case(filename, ".pif") ||
- str_has_suffix_case(filename, ".bat") ||
- str_has_suffix_case(filename, ".vbs") ||
- str_has_suffix_case(filename, ".js") ||
GetBinaryType(filename, &dwtype)) {
alertpanel_full
(_("Opening executable file"),