Alexandre,
> Icons are assigned by mime type.
I just found that out too. I did not quite expect it (too accustomed to
the way Windows does it). Luckily I came across someone having icon
problems with his *.py files, which attented me to it. as a result I've
placed an "# python" line at the top of my python script files.
> Every file / desktop manager has its own mime type database and icon
> directory, I don't know where Raspbian's PCManFM / LXDE keep theirs.
I /think/ that its stored under "/usr/share/icons/PiX" - which does not have
a "scalable" subfolder, indicating that it does not want to have anything to
do with my "text-x-python.svg" file. Took me a while to figure that one
out. :-|
> So that's one way, but all .py files would get the new icon.
Thats my intention, yes. To make the script files stand out from any kind
of documentation or other files I've put into the same folder.
> Otherwise just go with the .desktop file: exec=/home/pi/myfile.py,
> icon=/home/pi/myicon.png
I just realized that those files work independant of the "program" that are
aimed at (was assuming that it was for applications only). Much like .LNK
fils on Windows.
Regards,
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|