Associating Shell Scripts In Nautilus/gnome in FC2
This is a discussion about Associating Shell Scripts In Nautilus/gnome in FC2 in the Everything Linux category; The usual newbie disclaimer. . . . . Using Nautilus under Gnome I somehow ended up permanently associating shell scripts (MIME type application/x-shellscript) with gedit. No big deal - I deleted the association - but now I cannot get the script to execute.
The usual newbie disclaimer.....
Using Nautilus under Gnome I somehow ended up permanently associating shell scripts (MIME type application/x-shellscript) with gedit. No big deal - I deleted the association - but now I cannot get the script to execute. A double-click in nautilus brings up the "no action associated" dialog. How do I get to the point where they execute from nautilus and Gnome desktop again?
Regards -
DeFig
Using Nautilus under Gnome I somehow ended up permanently associating shell scripts (MIME type application/x-shellscript) with gedit. No big deal - I deleted the association - but now I cannot get the script to execute. A double-click in nautilus brings up the "no action associated" dialog. How do I get to the point where they execute from nautilus and Gnome desktop again?
Regards -
DeFig
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Aug 20
Aug 26
0
1 minute
Responses to this topic
are there any other scripts you can check the configuration/associations
of to see how to set yours up?
of to see how to set yours up?

OP
Good Suggestion, but no - this is the only box I have up. The change is global, so any shell script I look at has the same issue, including the link on the Gnome desktop that I put there for Firefox.
I had the same problem with Fedora 2, I assigned the x-sh and x-shellscript to an editor by mistake. First exit Nautilus, cd ~/.gnome/mime-info made a backup of user.keys and user.mime and deleted all the mime references (x-sh, x-shellscript) from both files. For example I deleted the following from user.keys:
application/x-sh
default_application_id=
category=Software Development/Source Code
default_component_iid=
description=
icon_filename=/usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-shellscript.png
use_category_default=no
application/x-shellscript
default_application_id=bsh
category=Software Development/Source Code
default_component_iid=
description=
icon_filename=/usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-shellscript.png
use_category_default=no
default_action_type=application
short_list_application_user_removals=
short_list_application_user_additions=bsh
I then deleted the following from user.mime:
application/x-sh
ext: sh
text/x-sh
deleted: moilegrandvizir
application/x-shellscript
ext:
I now have the default behavior for the File->Script
from Nautilus.
application/x-sh
default_application_id=
category=Software Development/Source Code
default_component_iid=
description=
icon_filename=/usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-shellscript.png
use_category_default=no
application/x-shellscript
default_application_id=bsh
category=Software Development/Source Code
default_component_iid=
description=
icon_filename=/usr/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-shellscript.png
use_category_default=no
default_action_type=application
short_list_application_user_removals=
short_list_application_user_additions=bsh
I then deleted the following from user.mime:
application/x-sh
ext: sh
text/x-sh
deleted: moilegrandvizir
application/x-shellscript
ext:
I now have the default behavior for the File->Script
from Nautilus.