Bug 618

Summary: Cleanup for "text executable" types (shellscripts and other scripts)
Product: shared-mime-info Reporter: David Faure <faure>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: cleanup for scripts types
patch I applied to HEAD.

Description David Faure 2004-05-14 23:04:40 UTC
The attached patch: 
 
- defines that scripts are sub-class-of application/x-executable, so that it 
becomes easy to check if something is executable (all it needs is to inherit 
x-executable and have +x permissions) 
 
- merges text/x-ksh into application/x-shellscript (does anyone really need a 
separate mimetype for this? If so, then it should be defined as application/x-* 
for consistency and it should be a subclass of application/x-shellscript) 
 
- moves the magic for csh scripts to the existing application/x-csh mimetype, 
and defines that it's a subtype of application/x-shellscript 
 
- defines that the script types are also text/plain. Many more types in the 
database are subclasses of text/plain, I'll file another report for that.
Comment 1 David Faure 2004-05-14 23:05:36 UTC
Created attachment 285 [details] [review]
cleanup for scripts types
Comment 2 Christophe Fergeau 2004-12-10 12:15:14 UTC
I applied your patch except for the change for application/x-javascript. Are
there widely used command line interpreters for javascript scripts ?
Comment 3 Christophe Fergeau 2004-12-10 12:16:49 UTC
Created attachment 1509 [details] [review]
patch I applied to HEAD.

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.