0

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)

1
Contributor
1
Reply
3
Views
7 Years
Discussion Span
Last Post by arunmagar
0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.