So I've installed Sublime Text from "Ubuntu Software", and I can't open text files with it by default. Right click offers "Open with Other Application" and I can choose Sublime from there, but I have to do this every time.
I see tonnes of questions and replies about this, which involve editing ~/.config/mimeapps.list - but each entry points to .desktop files. And for the life of me I can't find a .desktop file for Sublime Text.
I typed "which subl" and got "/snap/bin/subl" Ah - it's a snap install. But then where is the desktop file for it located? It's not in ~/.local/share/applications or /usr/opt/applications. But it must exist somewhere, because it exists in the "Open with" menu, and I can run it from the application menu!