Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85799

Summary: shared-mime-info: Incorrect mime entry for application/x-shellscript in freedesktop.org.xml file
Product: Gentoo Linux Reporter: James Thomas <let.it.bleed>
Component: New packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: lanius, tiago
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description James Thomas 2005-03-18 10:16:00 UTC
The mime type entry for shellscripts (application/x-shellscript), in the /usr/share/mime/packages/freedesktop.org.xml file, is incorrect, when using shared-mime-info 0.15.

The match value for bash, nawk, tcsh,csh, zsh and sh shells is incorrect, which results in applications using the specification (such as nautilus) unable to execute certain shell scripts.

Reproducible: Always
Steps to Reproduce:
1.Using nautilus, double click bash shell script
2.
3.

Actual Results:  
Error message is displayed

Expected Results:  
Should be promted as to what to do with the script, read, execute etc...

Adding a #! solves the problem, for example

<match value="/bin/bash" type="string" offset="1:16"/> should be
<match value="#!/bin/bash" type="string" offset="1:16"/>

Once done, run update-mime-database.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2005-03-25 04:02:16 UTC
what's your nautilus version? try shared-mime-info-0.16
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2005-04-24 15:33:26 UTC
please try shared-mime-info-0.16