Gnuplot is a command line program and I presume that application/x-gnuplot is for files which contain Gnuplot commands. A better definition would be: <mime-type type="text/x-gnuplot"> <_comment>Gnuplot script</_comment> <alias type="application/x-gnuplot"/> <sub-class-of type="text/plain"/> <generic-icon name="text-x-script"/> <glob pattern="*.gp"/> <glob pattern="*.gplt"/> <glob pattern="*.gnuplot"/> </mime-type> As a related note, scripting language types in general like application/x-php and application/x-perl fit better in the text/* namespace, because they are human-readable (I understand the text/* namespace to encompass human-readable text files), but that's probably another bug.
(In reply to comment #0) > Gnuplot is a command line program and I presume that application/x-gnuplot is > for files which contain Gnuplot commands. A better definition would be: > > <mime-type type="text/x-gnuplot"> > <_comment>Gnuplot script</_comment> Whether it's a scripting language or not, it's hard to say that Gnuplot documents are scripts. Otherwise you could consider SVG files scripts as well... > <alias type="application/x-gnuplot"/> > <sub-class-of type="text/plain"/> I've added the subclass for text/plain, makes it easily editable in text editors if there's no other handler. > <generic-icon name="text-x-script"/> > <glob pattern="*.gp"/> > <glob pattern="*.gplt"/> > <glob pattern="*.gnuplot"/> > </mime-type> > > As a related note, scripting language types in general like application/x-php > and application/x-perl fit better in the text/* namespace, because they are > human-readable (I understand the text/* namespace to encompass human-readable > text files), but that's probably another bug. They already have sub-class-of properties, so it makes little difference. * freedesktop.org.xml.in: Make application/x-gnuplot a sub-class-of text/plain (Closes: #15852)
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.