I am trying to change the icon for .py file.
I referred:
https://askubuntu.com/a/78645/78407
https://askubuntu.com/a/56725/78407
and
https://help.ubuntu.com/community/AddingMimeTypes
Still no success in changing the icon of python scripts. They remain like gedit icons.
As this Ubuntu wiki says:
To turn off the feature:
Open
nautilus
and go to Edit -> Preferences.Go to the Previews tab and under the Text Files section, select the menu for Show text in icons and select Never.
Close the Preferences.
Now, we come to changing icons.
I've Faenza Icon Theme installed, so I go to
/usr/share/icons/Faenza/mimetypes/scalable
and there is already an icon file namedtext-x-python.svg
, and the same shows for all the.py
files.If you've any icon theme installed you should go to the directory for that theme and make the changes, if not you should change the icons in the
/usr/share/icons/gnome
directory.Additional Links: You can read more about File Manager Preferences here: https://help.ubuntu.com/11.04/ubuntu-help/nautilus-prefs.html.