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