rpms/gvfs/F-11 gvfs-1.3.4-smb-browse-fake-content-type.patch, NONE, 1.1 gvfs.spec, 1.139, 1.140

Tomas Bzatek tbzatek at fedoraproject.org
Tue Aug 4 15:48:09 UTC 2009


Author: tbzatek

Update of /cvs/extras/rpms/gvfs/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20736

Modified Files:
	gvfs.spec 
Added Files:
	gvfs-1.3.4-smb-browse-fake-content-type.patch 
Log Message:
* Tue Aug  4 2009 Tomas Bzatek <tbzatek at redhat.com> - 1.2.3-9
- Fix SMB protocol not handled when opening from a bookmark (#509832)


gvfs-1.3.4-smb-browse-fake-content-type.patch:
 gvfsbackendsmbbrowse.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE gvfs-1.3.4-smb-browse-fake-content-type.patch ---
>From fa09fd4e5dda701c8862ce2d7762698b907cf90f Mon Sep 17 00:00:00 2001
From: Tomas Bzatek <tbzatek at redhat.com>
Date: Fri, 31 Jul 2009 16:58:54 +0200
Subject: [PATCH] smb-browse: fake content type to allow query default handler

Hardcode the "inode/directory" content-type
Fixes #573994
---
 daemon/gvfsbackendsmbbrowse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/daemon/gvfsbackendsmbbrowse.c b/daemon/gvfsbackendsmbbrowse.c
index 6d0c07e..2eebdd2 100644
--- a/daemon/gvfsbackendsmbbrowse.c
+++ b/daemon/gvfsbackendsmbbrowse.c
@@ -1229,6 +1229,7 @@ get_file_info_from_entry (GVfsBackendSmbBrowse *backend, BrowseEntry *entry, GFi
   g_file_info_set_edit_name (info, entry->name_utf8);
   g_file_info_set_attribute_string (info, "smb::comment", entry->comment);
   g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL, TRUE);
+  g_file_info_set_content_type (info, "inode/directory");
 
   icon = NULL;
   if (entry->smbc_type == SMBC_WORKGROUP)
@@ -1355,6 +1356,7 @@ try_query_info (GVfsBackend *backend,
       g_file_info_set_file_type (info, G_FILE_TYPE_DIRECTORY);
       g_file_info_set_name (info, "/");
       g_file_info_set_display_name (info, g_vfs_backend_get_display_name (backend));
+      g_file_info_set_content_type (info, "inode/directory");
       icon = g_vfs_backend_get_icon (backend);
       if (icon != NULL)
         g_file_info_set_icon (info, icon);
-- 
1.6.3.3



Index: gvfs.spec
===================================================================
RCS file: /cvs/extras/rpms/gvfs/F-11/gvfs.spec,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -p -r1.139 -r1.140
--- gvfs.spec	25 Jun 2009 12:39:20 -0000	1.139
+++ gvfs.spec	4 Aug 2009 15:48:09 -0000	1.140
@@ -1,7 +1,7 @@
 Summary: Backends for the gio framework in GLib
 Name: gvfs
 Version: 1.2.3
-Release: 8%{?dist}
+Release: 9%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
@@ -40,6 +40,9 @@ Patch4: gvfs-1.2.3-cdda-allow-query-well
 # SFTP timeout too short
 # https://bugzilla.redhat.com/show_bug.cgi?id=504339
 Patch5: gvfs-1.2.3-sftp-40sec-timeout.patch
+# smb url don't work in the run application dialog 
+# http://bugzilla.gnome.org/show_bug.cgi?id=573994 
+Patch6: gvfs-1.3.4-smb-browse-fake-content-type.patch
 
 # Gdu volume monitor patches, from http://cgit.freedesktop.org/~david/gvfs/log/?h=gdu-volume-monitor
 #
@@ -174,6 +177,7 @@ media players (Media Transfer Protocol) 
 %patch3 -p1 -b .dnssd-deadlock
 %patch4 -p1 -b .cdda-query
 %patch5 -p1 -b .sftp-timeout
+%patch6 -p1 -b .smb-fake-content-type
 
 %patch101 -p1 -b .gdu-volume-monitor
 %patch102 -p1 -b .gdu-volumes-typo
@@ -339,6 +343,9 @@ update-desktop-database &> /dev/null ||:
 
 
 %changelog
+* Tue Aug  4 2009 Tomas Bzatek <tbzatek at redhat.com> - 1.2.3-9
+- Fix SMB protocol not handled when opening from a bookmark (#509832)
+
 * Thu Jun 25 2009 Tomas Bzatek <tbzatek at redhat.com> - 1.2.3-8
 - Fix gphoto2 backend to work with Canon EOS 5D
 




More information about the fedora-extras-commits mailing list