Bug 99654 - Add a mime-type for fds files
Summary: Add a mime-type for fds files
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-02 18:53 UTC by radhika
Modified: 2017-02-06 14:37 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
patch for spporting mime-type for fds files (2.53 KB, patch)
2017-02-02 18:53 UTC, radhika
Details | Splinter Review
add mime type for fds files (2.61 KB, patch)
2017-02-03 09:42 UTC, radhika
Details | Splinter Review
The Famicom Disk System was a Japan-exclusive storage device for the Famicom, designed to reduce Nintendo's cost of making copies of games. (2.62 KB, patch)
2017-02-05 18:06 UTC, radhika
Details | Splinter Review

Description radhika 2017-02-02 18:53:07 UTC
Created attachment 129301 [details] [review]
patch for spporting mime-type for fds files

The Famicom Disk System was a Japan-exclusive storage device for the Famicom, designed to reduce Nintendo's cost of making copies of games.The mime-type for fds files are not yet supported by shared-mime-info.
Comment 1 Bastien Nocera 2017-02-02 20:08:54 UTC
Comment on attachment 129301 [details] [review]
patch for spporting mime-type for fds files

Review of attachment 129301 [details] [review]:
-----------------------------------------------------------------

::: freedesktop.org.xml.in
@@ +6984,5 @@
>      <glob pattern="*.gcode"/>
>    </mime-type>
>  
> +  <mime-type type="application/x-fds-rom">
> +    <comment>FDS ROM</comment>

This isn't marked for translation, and also lacks the acronym expansion.

::: tests/list
@@ +505,4 @@
>  neo-geo-pocket-test.ngp application/x-neo-geo-pocket-rom
>  # Pac-Man from Atari 2600 truncated to 1Ko
>  atari-2600-test.A26 application/x-atari-2600-rom ox
> +#Metroid truncated to 1Ko

Space after "#" like in the other lines.
Comment 2 radhika 2017-02-03 09:42:50 UTC
Created attachment 129315 [details] [review]
add mime type for fds files
Comment 3 Adrien Plazas 2017-02-03 10:36:32 UTC
Comment on attachment 129315 [details] [review]
add mime type for fds files

Review of attachment 129315 [details] [review]:
-----------------------------------------------------------------

It almost looks good to me.

::: freedesktop.org.xml.in
@@ +6984,4 @@
>      <glob pattern="*.gcode"/>
>    </mime-type>
>  
> +  <mime-type type="application/x-fds">

Question for Bastien: wouldn't application/x-fds-disk be better?

@@ +6984,5 @@
>      <glob pattern="*.gcode"/>
>    </mime-type>
>  
> +  <mime-type type="application/x-fds">
> +    <_comment>fds file</_comment>

The comment isn't good, take inspiration form other MIME types: it should be explicit and descriptive yet short.

::: tests/list
@@ +505,5 @@
>  neo-geo-pocket-test.ngp application/x-neo-geo-pocket-rom
>  # Pac-Man from Atari 2600 truncated to 1Ko
>  atari-2600-test.A26 application/x-atari-2600-rom ox
> +# Metroid truncated to 1Ko
> +Metroid_japan.fds application/x-fds

It doesn't look like the patch adds the Metroid_japan.fds file.
Comment 4 Bastien Nocera 2017-02-05 17:02:11 UTC
(In reply to Adrien Plazas from comment #3)
> Comment on attachment 129315 [details] [review] [review]
> add mime type for fds files
> 
> Review of attachment 129315 [details] [review] [review]:
> -----------------------------------------------------------------
> 
> It almost looks good to me.
> 
> ::: freedesktop.org.xml.in
> @@ +6984,4 @@
> >      <glob pattern="*.gcode"/>
> >    </mime-type>
> >  
> > +  <mime-type type="application/x-fds">
> 
> Question for Bastien: wouldn't application/x-fds-disk be better?

Yes, it would be better.

> @@ +6984,5 @@
> >      <glob pattern="*.gcode"/>
> >    </mime-type>
> >  
> > +  <mime-type type="application/x-fds">
> > +    <_comment>fds file</_comment>
> 
> The comment isn't good, take inspiration form other MIME types: it should be
> explicit and descriptive yet short.
> 
> ::: tests/list
> @@ +505,5 @@
> >  neo-geo-pocket-test.ngp application/x-neo-geo-pocket-rom
> >  # Pac-Man from Atari 2600 truncated to 1Ko
> >  atari-2600-test.A26 application/x-atari-2600-rom ox
> > +# Metroid truncated to 1Ko
> > +Metroid_japan.fds application/x-fds
> 
> It doesn't look like the patch adds the Metroid_japan.fds file.

It does, they don't show up in splinter.
Comment 5 radhika 2017-02-05 18:06:34 UTC
Created attachment 129347 [details] [review]
The Famicom Disk System was a Japan-exclusive storage device for the Famicom, designed to reduce Nintendo's cost of making copies of games.
Comment 6 Bastien Nocera 2017-02-06 01:02:38 UTC
Committed as 67d566c10ce4aba1e467f3af82d9770b040b6e88
Comment 7 Adrien Plazas 2017-02-06 13:44:46 UTC
Comment on attachment 129347 [details] [review]
The Famicom Disk System was a Japan-exclusive storage device for the Famicom, designed to reduce Nintendo's cost of making copies of games.

Review of attachment 129347 [details] [review]:
-----------------------------------------------------------------

Besides the comment it looks good to me.

::: freedesktop.org.xml.in
@@ +6984,5 @@
>      <glob pattern="*.gcode"/>
>    </mime-type>
>  
> +  <mime-type type="application/x-fds-disk">
> +    <_comment>fds file</_comment>

This is not a comment, look at other MIME types to understand what it's supposed to be.
Comment 8 radhika 2017-02-06 14:19:49 UTC
Yes i saw various mime-types and the comments used for them .I found this as the most suitable. If you think its not that good you may suggest,i will change it.
Comment 9 Bastien Nocera 2017-02-06 14:32:44 UTC
(In reply to radhika from comment #8)
> Yes i saw various mime-types and the comments used for them .I found this as
> the most suitable. If you think its not that good you may suggest,i will
> change it.

It was bad, but I changed it already. See:
https://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=67d566c10ce4aba1e467f3af82d9770b040b6e88
Comment 10 radhika 2017-02-06 14:37:56 UTC
(In reply to Bastien Nocera from comment #9)
> (In reply to radhika from comment #8)
> > Yes i saw various mime-types and the comments used for them .I found this as
> > the most suitable. If you think its not that good you may suggest,i will
> > change it.
> 
> It was bad, but I changed it already. See:
> https://cgit.freedesktop.org/xdg/shared-mime-info/commit/
> ?id=67d566c10ce4aba1e467f3af82d9770b040b6e88

I am really sorry.Although i tried my best,yet i could not find a good comment.
Thanks for changing it.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.