Commit 41c5ec7a authored by Natanael Copa's avatar Natanael Copa
Browse files

testing/xdg-utils: properly detect xfce

parent b4292505
......@@ -2,21 +2,27 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xdg-utils
pkgver=1.0.2
pkgrel=0
pkgrel=1
pkgdesc="Basic desktop integration functions"
url="http://portland.freedesktop.org/wiki/"
arch="all"
arch="noarch"
license="MIT"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
source="http://portland.freedesktop.org/download/xdg-utils-$pkgver.tgz"
source="http://portland.freedesktop.org/download/xdg-utils-$pkgver.tgz
xfce.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
......@@ -33,4 +39,5 @@ package() {
make DESTDIR="$pkgdir" install
}
md5sums="348a5b91dc66426505022c74a64b2940 xdg-utils-1.0.2.tgz"
md5sums="348a5b91dc66426505022c74a64b2940 xdg-utils-1.0.2.tgz
328567c08a452bdbbedd2f1cca9ac116 xfce.patch"
diff --git a/scripts/xdg-open b/scripts/xdg-open
index 4cc18a8..e7ed9c3 100755
--- a/scripts/xdg-open
+++ b/scripts/xdg-open
@@ -303,7 +303,7 @@ detectDE()
{
if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;
elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
- elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
+ elif [ -x /usr/bin/exo-open ]; then DE=xfce;
fi
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment