[arch-commits] Commit in thunar/trunk (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Dec 5 19:01:05 UTC 2012
Date: Wednesday, December 5, 2012 @ 14:01:04
Author: foutrelis
Revision: 172778
upgpkg: thunar 1.6.0-2
Fix FS#32974: Show NoDisplay=true applications
Added:
thunar/trunk/thunar-1.6.0-show-nodisplay-true-applications.patch
Modified:
thunar/trunk/PKGBUILD
Deleted:
thunar/trunk/thunar-1.4.0-show-loop-devices-hack.patch
-----------------------------------------------------+
PKGBUILD | 11 ++-
thunar-1.4.0-show-loop-devices-hack.patch | 15 ----
thunar-1.6.0-show-nodisplay-true-applications.patch | 57 ++++++++++++++++++
3 files changed, 65 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-12-05 18:43:12 UTC (rev 172777)
+++ PKGBUILD 2012-12-05 19:01:04 UTC (rev 172778)
@@ -4,7 +4,7 @@
pkgname=thunar
pkgver=1.6.0
-pkgrel=1
+pkgrel=2
pkgdesc="Modern file manager for Xfce"
arch=('i686' 'x86_64')
url="http://thunar.xfce.org"
@@ -22,12 +22,17 @@
'thunar-media-tags-plugin: view/edit id3/ogg tags')
options=('!libtool')
install=$pkgname.install
-source=(http://archive.xfce.org/src/xfce/$pkgname/1.6/Thunar-$pkgver.tar.bz2)
-sha256sums=('354897fbde4d3f089c06c38b57816f455c2907806725906426440e1084c1d63a')
+source=(http://archive.xfce.org/src/xfce/$pkgname/1.6/Thunar-$pkgver.tar.bz2
+ thunar-1.6.0-show-nodisplay-true-applications.patch)
+sha256sums=('354897fbde4d3f089c06c38b57816f455c2907806725906426440e1084c1d63a'
+ 'f7377aad1eb60420d0c1c878c3916913934f994df810f3a60d580fc2be3b80c0')
build() {
cd "$srcdir/Thunar-$pkgver"
+ # https://bugzilla.xfce.org/show_bug.cgi?id=9595
+ patch -Np1 -i "$srcdir/thunar-1.6.0-show-nodisplay-true-applications.patch"
+
./configure \
--prefix=/usr \
--sysconfdir=/etc \
Deleted: thunar-1.4.0-show-loop-devices-hack.patch
===================================================================
--- thunar-1.4.0-show-loop-devices-hack.patch 2012-12-05 18:43:12 UTC (rev 172777)
+++ thunar-1.4.0-show-loop-devices-hack.patch 2012-12-05 19:01:04 UTC (rev 172778)
@@ -1,15 +0,0 @@
-diff -upr Thunar-1.4.0.orig/thunar/thunar-gio-extensions.c Thunar-1.4.0/thunar/thunar-gio-extensions.c
---- Thunar-1.4.0.orig/thunar/thunar-gio-extensions.c 2012-05-26 07:03:39.000000000 +0300
-+++ Thunar-1.4.0/thunar/thunar-gio-extensions.c 2012-05-26 07:05:06.000000000 +0300
-@@ -550,6 +550,11 @@ thunar_g_volume_is_present (GVolume *vol
- has_media = g_drive_has_media (drive);
- g_object_unref (drive);
- }
-+ else
-+ {
-+ /* XXX: hack to show loop devices with gvfs 1.12 / udisks2 */
-+ has_media = g_volume_can_mount (volume);
-+ }
-
- mount = g_volume_get_mount (volume);
- if (mount != NULL)
Added: thunar-1.6.0-show-nodisplay-true-applications.patch
===================================================================
--- thunar-1.6.0-show-nodisplay-true-applications.patch (rev 0)
+++ thunar-1.6.0-show-nodisplay-true-applications.patch 2012-12-05 19:01:04 UTC (rev 172778)
@@ -0,0 +1,57 @@
+From 6b5c1c908b60965825407fb4557d024514a4f89a Mon Sep 17 00:00:00 2001
+From: Nick Schermer <nick at xfce.org>
+Date: Wed, 05 Dec 2012 17:34:38 +0000
+Subject: Show NoDisplay=true applications (bug #9595).
+
+See http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html
+---
+diff --git a/thunar/thunar-chooser-button.c b/thunar/thunar-chooser-button.c
+index f7ae355..f2993b8 100644
+--- a/thunar/thunar-chooser-button.c
++++ b/thunar/thunar-chooser-button.c
+@@ -453,7 +453,6 @@ thunar_chooser_button_file_changed (ThunarChooserButton *chooser_button,
+ /* add all possible applications */
+ for (lp = app_infos, i = 0; lp != NULL; lp = lp->next, ++i)
+ {
+- /* skip infos that have NoDisplay or OnlyShowIn set */
+ if (thunar_g_app_info_should_show (lp->data))
+ {
+ /* insert the item into the store */
+diff --git a/thunar/thunar-gio-extensions.c b/thunar/thunar-gio-extensions.c
+index d77f72a..1b9026a 100644
+--- a/thunar/thunar-gio-extensions.c
++++ b/thunar/thunar-gio-extensions.c
+@@ -569,26 +569,17 @@ gboolean
+ thunar_g_app_info_should_show (GAppInfo *info)
+ {
+ #ifdef HAVE_GIO_UNIX
+- const gchar *filename;
+-
+ _thunar_return_val_if_fail (G_IS_APP_INFO (info), FALSE);
+
+- /* check if NoDesktop is set or OnlyShowIn is set but
+- * does not contain XFCE */
+- if (g_app_info_should_show (info))
+- return TRUE;
+-
+ if (G_IS_DESKTOP_APP_INFO (info))
+ {
+- /* show custom command from the user directory, this to not
+- * exclude custom commands */
+- filename = g_desktop_app_info_get_filename (G_DESKTOP_APP_INFO (info));
+- if (filename != NULL
+- && g_str_has_prefix (filename, g_get_user_data_dir ()))
+- return TRUE;
++ /* NoDisplay=true files should be visible in the interface,
++ * because this key is intent to hide mime-helpers from the
++ * application menu. Hidden=true is never returned by GIO. */
++ return g_desktop_app_info_get_show_in (G_DESKTOP_APP_INFO (info), NULL);
+ }
+
+- return FALSE;
++ return TRUE;
+ #else
+ /* we cannot exclude custom actions, so show everything */
+ return TRUE;
+--
+cgit v0.9.0.3
More information about the arch-commits
mailing list