aboutsummaryrefslogtreecommitdiff
path: root/src/mimeview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mimeview.c')
-rw-r--r--src/mimeview.c6
1 files changed, 1 insertions, 5 deletions
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"),