Bug#825993: Rosegarden is not proposed when opening .rg files

Petter Reinholdtsen pere at hungry.com
Wed Jun 1 08:01:24 UTC 2016


Package: rosegarden
Version: 1:16.02-1
Tags: patch

When saving a file in Rosegarden, and then trying to use the KDE file
manager to open the file, Rosegarden is not listed as an option for
opening the file.  The reason as far as I understand it is that the MIME
type for the file as reported by file is not listed in the Rosegarden
desktop file.  This is the output from file for the file:

  % file somenotes.rg 
  somenotes.rg: gzip compressed data, from Unix
  % file --mime-type somenotes.rg 
  somenotes.rg: application/gzip
  %

While this is the settings in the desktop file:

  % grep Mime /usr/share/applications/rosegarden.desktop
  MimeType=audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template;audio/midi;
  X-KDE-NativeMimeType=audio/x-rosegarden-composition
  %

Until the file program start to return one of the MIME types listed in
the desktop file, I believe the desktop file need to list
application/gzip as a MIME type rosegarden can handle.  Can you change
the desktop file?  The following patch should work:

--- rosegarden.desktop.orig  2016-05-21 19:37:19.000000000 +0200
+++ rosegarden.desktop     2016-06-01 09:59:08.372236328 +0200
@@ -3,7 +3,7 @@
 Type=Application
 Categories=AudioVideo;Audio;Midi;Sequencer;X-SuSE-Sequencer;X-Red-Hat-Base;
 Exec=rosegarden %f
-MimeType=audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template;audio/midi;
+MimeType=audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template;audio/midi;application/gzip;
 X-KDE-NativeMimeType=audio/x-rosegarden-composition
 Icon=rosegarden
 Comment=MIDI and Audio Sequencer and Notation Editor

It is probably a good idea to get the Rosegarden files registered with
IANA with an official MIME type.  See
<URL: http://www.iana.org/assignments/media-types/media-types.xhtml >
for information about the procedure.

-- 
Happy hacking
Petter Reinholdtsen



More information about the pkg-multimedia-maintainers mailing list