[Thunar/f15] Add patch to fix smb mounting. Fixes #712469

Kevin Fenzi kevin at fedoraproject.org
Sat Aug 27 21:14:33 UTC 2011


commit 1b7086dcfbd0097c0a5f31832461ed2f737b6972
Author: Kevin Fenzi <kevin at scrye.com>
Date:   Sat Aug 27 15:14:17 2011 -0600

    Add patch to fix smb mounting. Fixes #712469

 Thunar-1.2.2-smb-gvfs.patch |   16 ++++++++++++++++
 Thunar.spec                 |   12 +++++++++++-
 2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/Thunar-1.2.2-smb-gvfs.patch b/Thunar-1.2.2-smb-gvfs.patch
new file mode 100644
index 0000000..8951a78
--- /dev/null
+++ b/Thunar-1.2.2-smb-gvfs.patch
@@ -0,0 +1,16 @@
+diff -Nur Thunar-1.2.2.orig/thunar/thunar-file.c Thunar-1.2.2/thunar/thunar-file.c
+--- Thunar-1.2.2.orig/thunar/thunar-file.c	2011-05-26 15:51:41.000000000 -0600
++++ Thunar-1.2.2/thunar/thunar-file.c	2011-08-27 15:05:10.429244148 -0600
+@@ -754,7 +754,11 @@
+           target_uri = 
+             g_file_info_get_attribute_string (file->info,
+                                               G_FILE_ATTRIBUTE_STANDARD_TARGET_URI);
+-          file->is_mounted = (target_uri != NULL);
++                file->is_mounted = (target_uri != NULL)
++                             ? !g_file_info_get_attribute_boolean (file->info,
++                                                       G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT)
++                  : FALSE;
++
+         }
+     }
+   else
diff --git a/Thunar.spec b/Thunar.spec
index 7605d53..5ced3a2 100644
--- a/Thunar.spec
+++ b/Thunar.spec
@@ -2,7 +2,7 @@
 
 Name:           Thunar
 Version:        1.2.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Thunar File Manager
 
 Group:          User Interface/Desktops
@@ -12,6 +12,11 @@ Source0:        http://archive.xfce.org/src/xfce/thunar/%{minorversion}/%{name}-
 Source1:        thunar-sendto-bluetooth.desktop
 Source2:        thunar-sendto-audacious-playlist.desktop
 Source3:        thunar-sendto-quodlibet-playlist.desktop
+#
+# Patch to fix smb mounting 
+# https://bugzilla.xfce.org/show_bug.cgi?id=7774
+# https://bugzilla.redhat.com/show_bug.cgi?id=712469
+Patch0:		Thunar-1.2.2-smb-gvfs.patch
 Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  exo-devel >= 0.5.1
@@ -65,6 +70,8 @@ libraries and header files for the Thunar file manager.
 %prep
 %setup -q
 
+%patch0 -p1
+
 # fix icon in thunar-sendto-email.desktop
 sed -i 's!internet-mail!mail-message-new!' \
         plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in
@@ -204,6 +211,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Sat Aug 27 2011 Kevin Fenzi <kevin at scrye.com> - 1.2.2-2
+- Add patch to fix smb mounting. Fixes #712469
+
 * Thu May 26 2011 Kevin Fenzi <kevin at scrye.com> - 1.2.2-1
 - Update to 1.2.2
 


More information about the scm-commits mailing list