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

2016-06-02 Thread Debian/GNU
On 2016-06-01 10:34, Petter Reinholdtsen wrote:
> I agree that the approach has some disadvantage, and the one you quotes
> is the major one, but I believe it is less of a disadvantage for
> unskilled users than having Rosegarden fail to show up as an alternative
> when he is trying to open a Rosegarden file in the file manager.

i think associating rosegarden with *any* gzip file is more harm than
not being able to open rosegarden files via the file-manager (and i
think this is shat sebastinas also thinks)

> 
> I believe it is better to get several options and be able to pick a
> working one from them than it is to not get any options.

i think the only valid option is to associate rosegarden with rg files
only (and not with gz files it cannot handle).

however, i don't really see the problem:
afaict, rosegarden.desktop associates with a lot of mimetypes
(audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template),
but rosegarden.sharedmimeinfo registers "audio/rosegarden" as the
mimetype for .rg files - a mimetype that is *not* listed in the desktop
file.

maybe we should fix this first (and maybe provide a rosegarden.mime file
if this doesn't help).

fmasdr
IOhannes

___
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#825993: Rosegarden is not proposed when opening .rg files

2016-06-01 Thread Petter Reinholdtsen
[Sebastian Ramacher]
> No, please don't. Please get file fixed to report the correct mimetype
> instead.

I'm not convinced that is possible.  I've asked about this in
http://bugs.debian.org/825994 >.

Do you agree that it should be possible to click (or double click) on a
Rosegarden file in the desktop file manager and get Rosegarden to start
automatically?  If modifying file proves to be impossible, do you have
any idea how to get the file opening to work?

> 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.

I agree that the approach has some disadvantage, and the one you quotes
is the major one, but I believe it is less of a disadvantage for
unskilled users than having Rosegarden fail to show up as an alternative
when he is trying to open a Rosegarden file in the file manager.

I believe it is better to get several options and be able to pick a
working one from them than it is to not get any options.

-- 
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#825993: Rosegarden is not proposed when opening .rg files

2016-06-01 Thread Sebastian Ramacher
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


signature.asc
Description: PGP signature
___
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#825993: Rosegarden is not proposed when opening .rg files

2016-06-01 Thread Petter Reinholdtsen

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.0 +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
http://www.iana.org/assignments/media-types/media-types.xhtml >
for information about the procedure.

-- 
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