TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2019-11-10 14:34:00
subject: pcmanfm - How to set the

Hello all,

Currently I can rightclick a python source file and than select an
application to open it with.   Is there a way to change the order of this
list ?    I would like to put a text editor on top, followed by Thonny (for
both python as well as python3 shebanged files).

Yes, I did my due duty by first trying to google it, but somehow I (again)
can't find much of anything about it (most of the stuff is more than 5 years
old).

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.

I also have python3 files (with the shebang line "#! /usr/bin/env python3")
which shows the same list, but with "mu" added to the top.   Same problem.
"Text editor" and 'Thonny" as the first two, and we can talk about the rest.
:-)

One of my problems is that I've searched, starting from "/usr", for all
"*.desktop" files containing "python", and have not found either "Text
editor" nor "Libre office writer" among them.   The same search using
"python3" added "Geany" to be absent.

In short, I have no idea how "Text editor", "Geany" and "Libre office
writer" become part of the "open with" list for the above two python version
files.

hmmm.... A quick check of my .sh, .c  and .h files show that "Libre office
writer" thinks it has some right to those filetypes too - even though the
"libreoffice-writer.desktop" file mentions none of them.  :-(

tl;dr:

So, how do I
(primary) sort the entries in the "open with" list ?
(secondary) get rid of certain "open with" entries - especially when their
.desktop configurations do not mention the files mimetype ?

Regards,
Rudy Wieser

--- 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™.