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

Sebastian Ramacher sramacher at debian.org
Wed Jun 1 08:13:48 UTC 2016


Hi

On 2016-06-01 10:01:24, Petter Reinholdtsen wrote:
> 
> 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:

No, please don't. Please get file fixed to report the correct mimetype instead.
Adding application/gzip will make rosegarden show up for all gz compressed files
and - even worse - make it the default program for application/gzip as long as
there is no other application/gzip handler with sorts before rosegarden or there
is default handler set by the DE. We already have enough of the "PDFs open in
GIMP per default" or "text files open with editor from wine" madness.

Regards
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20160601/4be694a9/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list