Bug#629105: hydrogen: Purports to handle SVG files

2016-06-02 Thread Petter Reinholdtsen
[Torquil Macdonald Sørensen]
> For a general *.xml file, I'd expect that the mest sensible would be that the
> file manager only proposes to open it in text editors, specialized XML viewers
> and editors. And there is nothing a file manager can do to avoid proposing to
> open such files in Hydrogen as long as the line MimeType=text/xml is in
> hydrogen.desktop?

I had a look at this, and with xfce today in testing, hydrogen is not proposed
as a application to use to open its own files when marking it in the file
manager.  I believe this is a bug and related to the issue in this bug request.

When running 'file --mime-type' on a .h2song file, the mime type returned is
application/xml.  This mime type is not listed in the hydrogen.desktop file.

But instead of just replacning text/xml with application/xml in the desktop
file, I propose to add a new file under /usr/share/mime/ specifying a mime
type for files ending in .h2song, and list this new mime type in the desktop
file.

The /usr/share/mime/packages/rosegarden.xml file look like this:


http://www.freedesktop.org/standards/shared-mime-info;>
  

Rosegarden project file

  


I am not sure if there is a well known MIME type already for hydrogen h2song,
but if it is not, perhaps audio/x-hydrogen-song would work?  Then I guess
something like this should go into /usr/share/mime/packages/hydrogen.xml:


http://www.freedesktop.org/standards/shared-mime-info;>
  

Hydrogen Drum Machine project file

  


And the audio/x-hydrogen-song value be added to the hydrogen.desktop file.
-- 
Happy hacking
Petter Reinholdtsen

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#629105: hydrogen: Purports to handle SVG files

2011-06-03 Thread Torquil Macdonald Sørensen
Package: hydrogen
Version: 0.9.5-2
Severity: normal

In the file manager Thunar, Hydrogen is presented as a handler for SVG files.
Is this caused by the line

MimeType=text/xml;

in /usr/share/applications/hydrogen.desktop ?

Perhaps SVG is a subset of XML? So, in claiming to handle XML, Hydrogen is
presented as a handler for SVG files indirectly?

Anyway, Hydrogen does nothing useful when opening an SVG file, of course.

Therefore I ask, is it sensible that Hydrogen should register itself as
a handler for general XML files? Wouldn't it be better to define a new MIME
type, e.g. audio/x-hydrogen-pattern and audio/x-hydrogen-song, determined
by the appropriate suffixes for the two different Hydrogen file types
*.h2song and *.h2pattern? Or both file suffixes could be used for a single
MIME type audio/x-hydrogen.

I'm no expert on MIME types, though.

Best regards
Torquil Sørensen

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hydrogen depends on:
ii  libarchive1 2.8.4-1  Single library to read/write tar, 
ii  libasound2  1.0.23-4 shared library for ALSA applicatio
ii  libc6   2.13-4   Embedded GNU C Library: Shared lib
ii  libgcc1 1:4.6.0-10   GCC support library
ii  libjack-jackd2-0 [libja 1.9.7~dfsg-1 JACK Audio Connection Kit (librari
ii  liblrdf00.4.0-5  library to manipulate RDF files de
ii  libportaudio2   19+svn20110326-1 Portable audio I/O - shared librar
ii  libportmidi01:184-2  library for real-time MIDI input/o
ii  libqt4-network  4:4.7.3-1Qt 4 network module
ii  libqt4-xml  4:4.7.3-1Qt 4 XML module
ii  libqtcore4  4:4.7.3-1Qt 4 core module
ii  libqtgui4   4:4.7.3-1Qt 4 GUI module
ii  libsndfile1 1.0.24-1 Library for reading/writing audio 
ii  libstdc++6  4.6.0-10 The GNU Standard C++ Library v3
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages hydrogen recommends:
pn  hydrogen-drumkits none (no description available)
pn  rubberband-clinone (no description available)

hydrogen suggests no packages.

-- no debconf information



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Re: Bug#629105: hydrogen: Purports to handle SVG files

2011-06-03 Thread Gabriel M. Beddingfield



On Fri, 3 Jun 2011, Torquil Macdonald Sørensen wrote:


In the file manager Thunar, Hydrogen is presented as a handler for SVG files.
Is this caused by the line

MimeType=text/xml;

in /usr/share/applications/hydrogen.desktop ?

Perhaps SVG is a subset of XML? So, in claiming to handle XML, Hydrogen is
presented as a handler for SVG files indirectly?


Hydrogen's song and drumkit files are indeed XML files. 
But no, Hydrogen does not handle SVG files (which are also 
XML files).


I think this is a bug in Thunar.  The mime type for SVG is 
image/svg+xml[1]


-gabriel

[1] http://www.w3.org/TR/SVG/intro.html#MIMEType___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers