summaryrefslogtreecommitdiff
path: root/source/x/xdg-utils
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/xdg-utils')
-rwxr-xr-xsource/x/xdg-utils/xdg-utils.SlackBuild6
-rw-r--r--source/x/xdg-utils/xdg-utils.mate.diff43
2 files changed, 47 insertions, 2 deletions
diff --git a/source/x/xdg-utils/xdg-utils.SlackBuild b/source/x/xdg-utils/xdg-utils.SlackBuild
index ad05d704..eabc7260 100755
--- a/source/x/xdg-utils/xdg-utils.SlackBuild
+++ b/source/x/xdg-utils/xdg-utils.SlackBuild
@@ -4,7 +4,7 @@
# Written by Erik Hanson erik@slackbuilds.org
# Modified for VERSION version by Patrick Volkerding <volkerdi@slackware.com>
-# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2013 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +28,7 @@
PKGNAM=xdg-utils
VERSION=1.1.0-rc1
ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
PKG_VERSION=${VERSION/-/_}
@@ -47,6 +47,8 @@ rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$VERSION.tar.bz2 || exit 1
cd $PKGNAM-$VERSION || exit 1
+zcat $CWD/xdg-utils.mate.diff.gz | patch -p1 --verbose || exit 1
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
diff --git a/source/x/xdg-utils/xdg-utils.mate.diff b/source/x/xdg-utils/xdg-utils.mate.diff
new file mode 100644
index 00000000..c2480e32
--- /dev/null
+++ b/source/x/xdg-utils/xdg-utils.mate.diff
@@ -0,0 +1,43 @@
+--- ./scripts/xdg-open.orig 2011-01-01 04:03:14.000000000 -0600
++++ ./scripts/xdg-open 2013-06-09 21:15:55.612892954 -0500
+@@ -308,6 +308,7 @@
+ elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
+ elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
+ elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde;
++ elif [ x"$DESKTOP_SESSION" == x"mate" ]; then DE=mate;
+ else DE=""
+ fi
+ }
+@@ -371,6 +372,21 @@
+ fi
+ }
+
++open_mate()
++{
++ if gvfs-open --help 2>/dev/null 1>&2; then
++ gvfs-open "$1"
++ else
++ mate-open "$1"
++ fi
++
++ if [ $? -eq 0 ]; then
++ exit_success
++ else
++ exit_failure_operation_failed
++ fi
++}
++
+ open_xfce()
+ {
+ exo-open "$1"
+@@ -539,6 +555,10 @@
+ open_gnome "$url"
+ ;;
+
++ mate)
++ open_mate "$url"
++ ;;
++
+ xfce)
+ open_xfce "$url"
+ ;;