I'm having a little trouble understanding exactly how MIME works on the desktop. The specific issue I'm having is that certain file types (C++ source, PHP source, and a couple others) open with Geany by default. Ideally, I'd like them to open up in Gedit, my text editor of choice.
So, I'm trying to clear up a few things in order to hopefully better understand how the process works.
- xdg-open is used to open the default application for a specific mimetype, correct?
- xdg-open doesn't have any default program for file of type application/x-php or text/x-c++src, so why is Geany used by default?
I have a feeling I'm missing a piece of the puzzle here somehow, so any clarification of how this all fits together would be great!