Hi All,
I am exploring on file properties.Specifically I want to know about file icon and other.
How does the process of file save is done when we create it first time?
And where all properties get save.
I want to change that icon file through code for any file.
Please Help me if anyone know how to do it.

Note : Any file i.e. File with any extention(ex. .txt,.html,.pdf etc)

Hi All,
I am exploring on file properties.Specifically I want to know about file icon and other.
How does the process of file save is done when we create it first time?
And where all properties get save.
I want to change that icon file through code for any file.
Please Help me if anyone know how to do it.

Note : Any file i.e. File with any extention(ex. .txt,.html,.pdf etc)

Hi All,
I myself created this thread.I got little solution for this thread as follow
I got ingormation about file and its respective icon information.
In linux nautilus makes xml file for each folder in
/home/arun/.nautilus/metafiles/

That xml contains entry for each file.If we change icon for a any file it keep path for a icon file.

Foe ex. We have File abc.txt on Desktop(/home/arun/Desktop)
And we want to change its icon .For that we can edit this xml file named ad
"file:%2F%2F%2Fhome%2Farun%2FDesktop.xml" present in
/home/arun/.nautilus/metafiles/ directory


<?xml version="1.0"?>
<directory>
<file name="abc.txt" timestamp="1264767014" custom_icon="file:///home/arun/Desktop/imp/my_applet.png"/>
</directory>


We can edit those xml manually and also via programs(java).
But we also need to restart the nautilus to confirm the changes.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.