Possible Duplicate:
How can I change the folder icon?
I'm using python. I want change a file icon with Gio from a python app. I found a lot of deprecated documentation and I'm not sure how I can do it.
I tried this, but nothing happen:
from gi.repository import Gio
f = Gio.File.parse_name('/home/my_user/Desktop/test.txt')
f.set_attribute_string("metadata::custom_icon", '/usr/share/icons/Humanity/animations/48/brasero-disc-100.svg', Gio.FileQueryInfoFlags.NONE, None)
Which class and method have I use? Any idea, please? Thanks in advance!