rpms/xdg-utils/FC-6 xdg-utils-1.0-mimeopen.patch, NONE, 1.1 xdg-utils.spec, 1.7, 1.8

Rex Dieter (rdieter) fedora-extras-commits at redhat.com
Tue Oct 24 12:30:12 UTC 2006


Author: rdieter

Update of /cvs/extras/rpms/xdg-utils/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20667

Modified Files:
	xdg-utils.spec 
Added Files:
	xdg-utils-1.0-mimeopen.patch 
Log Message:
* Tue Oct 24 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.0-2
- prefer mimeopen as generic default (#210797)


xdg-utils-1.0-mimeopen.patch:

--- NEW FILE xdg-utils-1.0-mimeopen.patch ---
--- xdg-utils-1.0/scripts/xdg-open.mimeopen	2006-10-17 22:55:02.000000000 +0200
+++ xdg-utils-1.0/scripts/xdg-open	2006-10-17 22:55:15.000000000 +0200
@@ -360,6 +360,15 @@
 
 open_generic()
 {
+    if mimeopen -v 2>/dev/null 1>&2; then
+        mimeopen -n "$1"
+        if [ $? -eq 0 ]; then
+            exit_success
+        else
+            exit_failure_operation_failed
+        fi
+    fi
+
     IFS=":"
     for browser in $BROWSER; do
         if [ x"$browser" != x"" ]; then


Index: xdg-utils.spec
===================================================================
RCS file: /cvs/extras/rpms/xdg-utils/FC-6/xdg-utils.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- xdg-utils.spec	10 Oct 2006 12:48:28 -0000	1.7
+++ xdg-utils.spec	24 Oct 2006 12:29:42 -0000	1.8
@@ -2,7 +2,7 @@
 Summary: Basic desktop integration functions 
 Name:    xdg-utils
 Version: 1.0 
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 URL:     http://portland.freedesktop.org/ 
 Source0: http://portland.freedesktop.org/download/xdg-utils-%{version}%{?beta}.tgz
@@ -11,14 +11,13 @@
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 
-# Not really used (yet)
-#BuildRequires: xmlto
-
 Requires: desktop-file-utils
 ## kde-config
-#Requires: kdelibs
-# update-gtk-icon-cache
-#Requires: gtk2
+#Requires(hint): kdelibs
+## update-gtk-icon-cache
+#Requires(hint): gtk2
+## generic default
+#Requires(hint): mimeopen
 
 
 %description
@@ -71,6 +70,9 @@
 
 
 %changelog
+* Tue Oct 24 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.0-2
+- prefer mimeopen as generic default (#210797)
+
 * Tue Oct 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.0-1
 - 1.0(final)
 




More information about the fedora-extras-commits mailing list