[Xfce4-commits] <thunar:master> Allow exec bit of MS-DOS executables and MSI to be changed (bug #3545).

Jannis Pohlmann noreply at xfce.org
Sat Sep 17 01:12:01 CEST 2011


Updating branch refs/heads/master
         to cfab3c6a3b7ad714fc3fe67e84bf0d3b1fc6d4b1 (commit)
       from 8ec1a0e9e197538bce0ed1e8815737f11acef01d (commit)

commit cfab3c6a3b7ad714fc3fe67e84bf0d3b1fc6d4b1
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sat Sep 17 01:08:02 2011 +0200

    Allow exec bit of MS-DOS executables and MSI to be changed (bug #3545).
    
    Patch by Alex Henrie<alexhenrie24 at gmail.com>.

 NEWS                                |    2 ++
 thunar/thunar-permissions-chooser.c |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index b42f6e3..104bccd 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@
   in a way that does not break SMB shares (#bug 7774).
   Patches by Ambroz Bizjak and Axel Sommerfeldt.
 - Fix segfaults in case icons are missing or not found (bug #7880).
+- Allow exec bit of MS-DOS executables and MSI to be changed 
+  (bug #3545).
 
 1.3.0
 =====
diff --git a/thunar/thunar-permissions-chooser.c b/thunar/thunar-permissions-chooser.c
index 7e26dd0..576010f 100644
--- a/thunar/thunar-permissions-chooser.c
+++ b/thunar/thunar-permissions-chooser.c
@@ -867,7 +867,9 @@ thunar_permissions_chooser_file_changed (ThunarPermissionsChooser *chooser,
   g_signal_handlers_block_by_func (G_OBJECT (chooser->program_button), thunar_permissions_chooser_program_toggled, chooser);
   g_object_set (G_OBJECT (chooser->program_button), "visible", thunar_file_is_regular (file)
       && (thunarx_file_info_has_mime_type (THUNARX_FILE_INFO (file), "application/x-executable")
-       || thunarx_file_info_has_mime_type (THUNARX_FILE_INFO (file), "application/x-shellscript")), NULL);
+       || thunarx_file_info_has_mime_type (THUNARX_FILE_INFO (file), "application/x-shellscript")
+       || thunarx_file_info_has_mime_type (THUNARX_FILE_INFO (file), "application/x-ms-dos-executable")
+       || thunarx_file_info_has_mime_type (THUNARX_FILE_INFO (file), "application/x-msi")), NULL);
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (chooser->program_button), (mode & 0111) != 0);
   g_signal_handlers_unblock_by_func (G_OBJECT (chooser->program_button), thunar_permissions_chooser_program_toggled, chooser);
 


More information about the Xfce4-commits mailing list