summaryrefslogtreecommitdiff
path: root/extra/thunar
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-28 00:02:35 +0000
committerroot <root@rshg054.dnsready.net>2012-05-28 00:02:35 +0000
commit89dd7b5f30d48c708092a71b1c8285090fe91505 (patch)
treefb3a22f789121b955ff0fce7ec8d2f8c8886579b /extra/thunar
parent1f45ad8e3f17397e2f44e68ef9a0d860091eea9e (diff)
Mon May 28 00:02:35 UTC 2012
Diffstat (limited to 'extra/thunar')
-rw-r--r--extra/thunar/PKGBUILD15
-rw-r--r--extra/thunar/thunar-1.4.0-show-loop-devices-hack.patch15
2 files changed, 26 insertions, 4 deletions
diff --git a/extra/thunar/PKGBUILD b/extra/thunar/PKGBUILD
index e0b8e003e..563ec2d2c 100644
--- a/extra/thunar/PKGBUILD
+++ b/extra/thunar/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 157829 2012-04-30 04:19:49Z foutrelis $
+# $Id: PKGBUILD 159694 2012-05-26 04:30:08Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
pkgname=thunar
pkgver=1.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="Modern file manager for Xfce"
arch=('i686' 'x86_64')
url="http://thunar.xfce.org"
@@ -22,12 +22,19 @@ optdepends=('gvfs: for trash support, mounting with udisk and remote filesystems
'thunar-media-tags-plugin: view/edit id3/ogg tags')
options=('!libtool')
install=$pkgname.install
-source=(http://archive.xfce.org/src/xfce/$pkgname/1.4/Thunar-$pkgver.tar.bz2)
-sha256sums=('2c11a19e64cef708a264fb4d5d933389899c3d132fe7b1e313dd6e37bfe4c8ba')
+source=(http://archive.xfce.org/src/xfce/$pkgname/1.4/Thunar-$pkgver.tar.bz2
+ thunar-1.4.0-show-loop-devices-hack.patch)
+sha256sums=('2c11a19e64cef708a264fb4d5d933389899c3d132fe7b1e313dd6e37bfe4c8ba'
+ '185c44db9bdf578d22cb69b81dce7fcc3e2ee6031b1547de6453ff0752dbc97e')
build() {
cd "$srcdir/Thunar-$pkgver"
+ # Fix: Loop devices not appearing in Thunar side pane
+ # https://bugs.archlinux.org/task/29894
+ # https://bugzilla.xfce.org/show_bug.cgi?id=8947
+ patch -Np1 -i "$srcdir/thunar-1.4.0-show-loop-devices-hack.patch"
+
./configure \
--prefix=/usr \
--sysconfdir=/etc \
diff --git a/extra/thunar/thunar-1.4.0-show-loop-devices-hack.patch b/extra/thunar/thunar-1.4.0-show-loop-devices-hack.patch
new file mode 100644
index 000000000..95bbc6665
--- /dev/null
+++ b/extra/thunar/thunar-1.4.0-show-loop-devices-hack.patch
@@ -0,0 +1,15 @@
+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)