Package: thunar
Version: 1.6.3-1
Followup-For: Bug #763726
Hi everyone,
this bug is quite a pain, and there is a patch available for it at
https://bugzilla.xfce.org/show_bug.cgi?id=11212
I have prepared an NMU to fix this problem using the patch from this
bug report, and I am planning to upload to DELAYED queue soon,
as I think we *really* should get this into jessie.
I attach the debdiff of the NMU
Thanks
Norbert
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.17.0 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages thunar depends on:
ii desktop-file-utils 0.22-1
ii exo-utils 0.10.2-4
ii libatk1.0-0 2.14.0-1
ii libc6 2.19-12
ii libcairo2 1.14.0-2.1
ii libdbus-1-3 1.8.8-2
ii libdbus-glib-1-2 0.102-1
ii libexo-1-0 0.10.2-4
ii libgdk-pixbuf2.0-0 2.31.1-2+b1
ii libglib2.0-0 2.42.0-2
ii libgtk2.0-0 2.24.25-1
ii libgudev-1.0-0 215-5+b1
ii libice6 2:1.0.9-1
ii libnotify4 0.7.6-2
ii libpango-1.0-0 1.36.8-2
ii libsm6 2:1.2.2-1
ii libthunarx-2-0 1.6.3-1.1
ii libxfce4ui-1-0 4.10.0-6
ii libxfce4util6 4.10.1-2
ii libxfconf-0-2 4.10.0-3
ii shared-mime-info 1.3-1
ii thunar-data 1.6.3-1.1
Versions of packages thunar recommends:
ii dbus-x11 1.8.8-2
ii gvfs 1.22.1-1
ii libfontconfig1 2.11.0-6.1
ii libfreetype6 2.5.2-2
ii libpangocairo-1.0-0 1.36.8-2
ii libpangoft2-1.0-0 1.36.8-2
ii thunar-volman 0.8.0-4
ii tumbler 0.1.30-1+b1
ii xdg-user-dirs 0.15-2
ii xfce4-panel 4.10.1-1
Versions of packages thunar suggests:
ii thunar-archive-plugin 0.3.1-3
ii thunar-media-tags-plugin 0.2.1-1
-- no debconf information
diff -Nru thunar-1.6.3/debian/changelog thunar-1.6.3/debian/changelog
--- thunar-1.6.3/debian/changelog 2013-05-22 06:55:11.000000000 +0900
+++ thunar-1.6.3/debian/changelog 2014-10-30 16:29:22.000000000 +0900
@@ -1,3 +1,10 @@
+thunar (1.6.3-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * fix mime type association error caused by glib update (Closes: #763726)
+
+ -- Norbert Preining <[email protected]> Thu, 30 Oct 2014 16:28:39 +0900
+
thunar (1.6.3-1) unstable; urgency=low
* New upstream release.
diff -Nru thunar-1.6.3/debian/patches/series thunar-1.6.3/debian/patches/series
--- thunar-1.6.3/debian/patches/series 2013-05-22 06:54:01.000000000 +0900
+++ thunar-1.6.3/debian/patches/series 2014-10-30 16:27:28.000000000 +0900
@@ -1 +1,2 @@
01_support-non-multiarch-modules.patch
+thunar-fix-default-application-lookup
diff -Nru thunar-1.6.3/debian/patches/thunar-fix-default-application-lookup thunar-1.6.3/debian/patches/thunar-fix-default-application-lookup
--- thunar-1.6.3/debian/patches/thunar-fix-default-application-lookup 1970-01-01 09:00:00.000000000 +0900
+++ thunar-1.6.3/debian/patches/thunar-fix-default-application-lookup 2014-10-30 16:28:35.000000000 +0900
@@ -0,0 +1,43 @@
+pull fix for glib >2.41 default mime apps
+from bug https://bugzilla.xfce.org/show_bug.cgi?id=11212
+---
+ thunar/thunar-file.c | 21 ++++++++++++++++++++-
+ 1 file changed, 20 insertions(+), 1 deletion(-)
+
+--- thunar-1.6.3.orig/thunar/thunar-file.c
++++ thunar-1.6.3/thunar/thunar-file.c
+@@ -3963,6 +3963,7 @@
+ GList *next;
+ GList *ap;
+ GList *lp;
++ GAppInfo *default_application;
+ const gchar *previous_type = NULL;
+ const gchar *current_type;
+
+@@ -3981,7 +3982,25 @@
+
+ /* determine the list of applications that can open this file */
+ if (G_UNLIKELY (current_type != NULL))
+- list = g_app_info_get_all_for_type (current_type);
++ {
++ list = g_app_info_get_all_for_type (current_type);
++
++ /* move any default application in front of the list */
++ default_application = g_app_info_get_default_for_type (current_type, FALSE);
++ if (G_LIKELY (default_application != NULL))
++ {
++ for (ap = list; ap != NULL; ap = ap->next)
++ {
++ if (g_app_info_equal (ap->data, default_application))
++ {
++ g_object_unref (ap->data);
++ list = g_list_delete_link (list, ap);
++ break;
++ }
++ }
++ list = g_list_prepend (list, default_application);
++ }
++ }
+ else
+ list = NULL;
+
_______________________________________________
Pkg-xfce-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xfce-devel