TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2019-11-10 13:09:00
subject: Re: pcmanfm - How to set

 Following up...

On Sun, 10 Nov 2019 14:34:25 +0100, "R.Wieser" 
declaimed the following:

>
>Looking at my own stuff,  I have python files (with the shebang line "#!
>/usr/bin/env python"), which shows "Geany", "Thonny", "Text editor" and
>"Libre Office writer" in that order.   I would like to get rid of the "Libre
>office writer" entry entirely (and possibly "geany" too) , and have the
>"Text editor" and "Thonny" in that order as the first two.
>

pi@rpi3bplus-1:~$ grep -r -i "text/plain" /usr/share/mime/* |grep "python"
/usr/share/mime/subclasses:text/x-python text/plain
/usr/share/mime/text/x-python.xml:  
pi@rpi3bplus-1:~$

 From which I deduce that any application that handles text/plain will
be considered valid for text/x-python (I still have no idea why
text/x-python3 is so irregular on this system -- it shows up in some files
but not others).

 You might want to study the contents of the directory /user/share/mime


 AH -- there it may be...
pi@rpi3bplus-1:~$ cat /usr/share/mime/text/x-python3.xml

http://www.freedesktop.org/standards/shared-mime-info"
type="text/x-python3">
  
  Python 3 script

    <====== and x-python is
  
  
  

pi@rpi3bplus-1:~$

pi@rpi3bplus-1:~$ cat /usr/share/mime/text/x-python.xml

http://www.freedesktop.org/standards/shared-mime-info"
type="text/x-python">
  
  Python script

  
    <=======
  
  
  

pi@rpi3bplus-1:~$


--
 Wulfraed                 Dennis Lee Bieber         AF6VN
 wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.