Re: How do I change a folder icon from a script?
- From: Marcus Carlson <nautilus mejlamej nu>
- To: Perl Whore <whoreperl gmail com>
- Cc: nautilus-list gnome org
- Subject: Re: How do I change a folder icon from a script?
- Date: Sat, 10 Oct 2009 13:18:58 +0200
Perl Whore skrev:
In nautilus, I can go into properties and change the icon of a folder
to a custom one. Can the same be done from the commandline or is it
possible with DBus? If so, how?
In gvfs 2.28 you can use gvfs-info and gvfs-set-attribute to get and set
any metadata.
To get the custom icon value;
# gvfs-info -a metadata::custom-icon myfolder
To set a custom icon
# gvfs-set-attribute myfolder metadata::custom-icon
file:///usr/share/pixmaps/gnome-spider.png
Marcus
I want to use it in a script.
Also how do I check if it has an icon set already?
Thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]