How do I delete custom Nautilus scripts?

Asked by Phil Wright

I dragged a custom bash script into the Ubuntu Tweak 'Manage Scripts' window, and it worked ok but now I want to delete it.

A context menu on the 'Enabled' side of the Scripts window has a 'Delete' command, but when I used it on the script it just reappeared in the 'Disabled' scripts list. Ubuntu Tweak does not give the option of deleting the script from that side of the window.

I have found the other scripts in the directory '/usr/share/ubuntu-tweak/scripts' but the custom script is not there.

I found that the 'Enabled' scripts are in '~/.gnome2/nautilus-scripts' so I tried enabling the custom script and deleting it from the '~/.gnome2/nautilus-scripts' directory, but then it just reappeared back in the 'Disabled' scripts side of the 'Manage Tweaks' window again.

Where does 'Ubuntu Tweak' store the custom script? I've searched for the file and I can't find it anywhere. Is it stored inside some other file? How can I remove this script from Ubuntu Tweak?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Tweak Edit question
Assignee:
No assignee Edit question
Solved by:
Phil Wright
Solved:
Last query:
Last reply:
Revision history for this message
Phil Wright (jozubiso) said :
#1

Ok I found the file eventually in the directory '~/.config/ubuntu-tweak/scripts' and deleted it - I hadn't realised Ubuntu Tweak also stored them there in addition to '/usr/share/ubuntu-tweak/scripts'.

This experience does suggest it would be a good idea to have a way of removing custom scripts from Ubuntu Tweak - currently there does not seem to be any way to do this.