Hello all,
Just now I set a python script to be executable and added a "hashbang" line
to indicate its target program (#!/usr/bin/env python3). As a result it
lost the filetype icon I had previously set for python script files.
The thing is that checking the mimetype using "file -i" showed that script
files with and without the python icon showed the same one :
"text/x-python". As such they /should/ have shown the same icon ...
A few googles later I came across this command "xdg-mime query filetype"
which showed a different mimetype (a result which turned out the one I
needed to use in a icon-for-mimetype .xml file)
The question is: what is the purposes of "file -i" and "xdg-mime query
filetype" returning different results ? Or, in other words: what are they
aimed at ?
Regards,
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|