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
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]
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]
Thanks! I've posted about it over at the XFCE forum: http://forum.xfce.org/viewtopic.php?pid=21849 and will await their response. I included a link here for them to check out. I'll come back here and closee this report later after I have some more info. Best regards Torquil Sørensen
While I agree that it might be a bug in Thunar to not use the Mime type image/svg+xml for *.svg files, it is still a problem that Hydrogen will be registered as a handler for *.xml files, right? 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? Best regards Torquil Sørensen
[Torquil Macdonald Sørensen]
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:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="audio/x-rosegarden">
<sub-class-of type="application/x-gzip"/>
<comment>Rosegarden project file</comment>
<glob pattern="*.rg"/>
</mime-type>
</mime-info>
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:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="audio/x-hydrogen-song">
<sub-class-of type="application/xml"/>
<comment>Hydrogen Drum Machine project file</comment>
<glob pattern="*.h2song"/>
</mime-type>
</mime-info>
And the audio/x-hydrogen-song value be added to the hydrogen.desktop file.
Dear submitter, as the package hydrogen has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/952772 The version of this package that was in Debian prior to this removal can still be found using http://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Scott Kitterman (the ftpmaster behind the curtain)