954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

File properties (example- icon file) in linux

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)

arunmagar
Light Poster
36 posts since Oct 2008
Reputation Points: 10
Solved Threads: 6
 

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"?>


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

Thanks.

arunmagar
Light Poster
36 posts since Oct 2008
Reputation Points: 10
Solved Threads: 6
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: