Your message dated Fri, 14 Jan 2011 09:02:15 +0000
with message-id <[email protected]>
and subject line Bug#609630: fixed in xdg-utils 1.1.0~rc1-1
has caused the Debian Bug report #609630,
regarding xdg-utils: a way to specify mime type for xdg-open?
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
609630: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609630
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xdg-utils
Version: 1.0.2+cvs20100307-2
Severity: wishlist
Tags: patch
I'd really like midori to play xspf files using parole (a media player).
The mime type used by .xspf is application/xspf+xml. By default,
there's no application associated with them, but one can specify an
application with the following command:
xdg-mime default parole.desktop application/xspf+xml
This would work if xdg-mime saw an xspf as the correct mime type;
however, 'xdg-mime query filetype foo.xspf' results in
application/xml. This means that xdg-open will never launch the
correct application for xspf unless it is specifically told the mime
type (which midori knows, as the webpage which generates the xspf tells
it). As such, it would be nice if xdg-open supported an additional
argument specifying the mime type. Thus, one could do
xdg-open foo.xspf application/xspf+xml
And the correct mime type would be forced (and web browsers which
launch xdg-open on a file, can force the mime type).
Attached is a patch which adds support for this. If there's
another/better way to achieve this (especially since xdg-open is going
to be one of many things called; including exo-open, gvfs/gnome-open,
etc), I'm all ears.
--- xdg-open 2011-01-10 18:02:08.000000000 -0800
+++ /usr/bin/xdg-open 2011-01-10 18:21:04.000000000 -0800
@@ -40,7 +40,7 @@
Synopsis
-xdg-open { file | URL }
+xdg-open { file | URL } [mime]
xdg-open { --help | --manual | --version }
@@ -88,6 +88,10 @@
Opens the PNG image file /tmp/foobar.png in the user's default image viewing
application.
+xdg-open /tmp/moo.xspf application/xspf+xml
+
+Opens the XSPF playlist, forcing the mime type to application/xspf+xml.
+
_MANUALPAGE
}
@@ -98,7 +102,7 @@
Synopsis
-xdg-open { file | URL }
+xdg-open { file | URL } [mime]
xdg-open { --help | --manual | --version }
@@ -380,7 +384,11 @@
open_generic_xdg_mime()
{
- filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"`
+ if [ -n "$2" ]; then
+ filetype="$2"
+ else
+ filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"`
+ fi
default=`xdg-mime query default "$filetype"`
if [ -n "$default" ] ; then
xdg_user_dir="$XDG_DATA_HOME"
@@ -395,7 +403,7 @@
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word`"
command_exec=`which $command 2>/dev/null`
if [ -x "$command_exec" ] ; then
- $command_exec $1
+ $command_exec "$1"
if [ $? -eq 0 ]; then
exit_success
fi
@@ -421,7 +429,7 @@
check_input_file "$file"
- open_generic_xdg_mime "$file"
+ open_generic_xdg_mime "$file" "$2"
if [ -f /etc/debian_version ] &&
which run-mailcap 2>/dev/null 1>&2; then
@@ -450,6 +458,7 @@
[ x"$1" != x"" ] || exit_failure_syntax
url=
+mime=
while [ $# -gt 0 ] ; do
parm="$1"
shift
@@ -464,6 +473,10 @@
exit_failure_syntax "unexpected argument '$parm'"
fi
url="$parm"
+ if [ -n "$1" ]; then
+ mime="$1"
+ shift
+ fi
;;
esac
done
@@ -492,7 +505,7 @@
;;
generic)
- open_generic "$url"
+ open_generic "$url" "$mime"
;;
*)
--- End Message ---
--- Begin Message ---
Source: xdg-utils
Source-Version: 1.1.0~rc1-1
We believe that the bug you reported is fixed in the latest version of
xdg-utils, which is due to be installed in the Debian FTP archive:
xdg-utils_1.1.0~rc1-1.debian.tar.gz
to main/x/xdg-utils/xdg-utils_1.1.0~rc1-1.debian.tar.gz
xdg-utils_1.1.0~rc1-1.dsc
to main/x/xdg-utils/xdg-utils_1.1.0~rc1-1.dsc
xdg-utils_1.1.0~rc1-1_all.deb
to main/x/xdg-utils/xdg-utils_1.1.0~rc1-1_all.deb
xdg-utils_1.1.0~rc1.orig.tar.gz
to main/x/xdg-utils/xdg-utils_1.1.0~rc1.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Per Olofsson <[email protected]> (supplier of updated xdg-utils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 14 Jan 2011 09:45:41 +0100
Source: xdg-utils
Binary: xdg-utils
Architecture: source all
Version: 1.1.0~rc1-1
Distribution: unstable
Urgency: low
Maintainer: Per Olofsson <[email protected]>
Changed-By: Per Olofsson <[email protected]>
Description:
xdg-utils - desktop integration utilities from freedesktop.org
Closes: 609630
Changes:
xdg-utils (1.1.0~rc1-1) unstable; urgency=low
.
* New upstream release.
* Drop patches included upstream:
- xdg-email-mawk-support.diff
- run-mailcap-decode.diff
- xdg-open-spaces.diff
* Add debian/source/local-options with option unapply-patches.
* Recommend libfile-mimeinfo-perl instead of file, mime-support,
shared-mime-info, www-browser.
* Add patch xdg-mime-generic-use-mimetype.diff: Try mimetype first as
the generic method for xdg-mime. Closes: #609630.
* Add patch bashism.diff fixing some new bashisms.
Checksums-Sha1:
4f880b0d5edd29690d9a16ecf38916157dbd7ac8 1226 xdg-utils_1.1.0~rc1-1.dsc
5bd5e2fe10e3055ccec347e8608476fab2d3eaca 300546 xdg-utils_1.1.0~rc1.orig.tar.gz
95e64f64fb458c2f883a7a63c5a7ede99c0d0769 7533
xdg-utils_1.1.0~rc1-1.debian.tar.gz
2850a2a2eb96d2206344aceda1bbba5b5d7bb8fc 69994 xdg-utils_1.1.0~rc1-1_all.deb
Checksums-Sha256:
00dae0f2fbe88e1a0fba07103cd39144445a601f7b145ca33b2bc1e82214465a 1226
xdg-utils_1.1.0~rc1-1.dsc
7b05558ae4bb8ede356863cae8c42e3e012aa421bf9d45130a570fd209d79102 300546
xdg-utils_1.1.0~rc1.orig.tar.gz
5777ad79bc63cb72668c175364d3aafcb8649457ef87fd8e7337693850cc59fc 7533
xdg-utils_1.1.0~rc1-1.debian.tar.gz
9b4988cd2d9c854914faf99dd69efacf23aeb94be4bb86528236d8fb11c02fad 69994
xdg-utils_1.1.0~rc1-1_all.deb
Files:
3b133d921e6051898dc47d241da5b4d6 1226 utils optional xdg-utils_1.1.0~rc1-1.dsc
fadf5e7a08e0526fc60dbe3e5b7ef8d6 300546 utils optional
xdg-utils_1.1.0~rc1.orig.tar.gz
a74d0d0ba17ecf9278f02c972b48e62b 7533 utils optional
xdg-utils_1.1.0~rc1-1.debian.tar.gz
f7bc344f6b945b07ff21495dd8f64c2a 69994 utils optional
xdg-utils_1.1.0~rc1-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk0wDgcACgkQeDAsS42/7C86ewCgo31HlIWvrSIQ8FGD2nD0x1vg
JnsAoJAvUyrTbYm126YgDiWJLNnnMqUx
=wZ2F
-----END PGP SIGNATURE-----
--- End Message ---