I do not know what is actually performing the MIME type detection (some KDE / Plasma / Qt library or component?) but it’s deciding that an empty, zero byte text file with a *.txt extension counts as this obscure dashcam format rather than the more sensible “this is an empty plain text file”.
As a result, if you create an empty text file (e.g., via the Dolphin context menu¹), it will end up opening in GPXSee rather than Kate / KWrite.
I’ve no idea where this is coming from so that I can open a bug report in the relevant project. Can anybody help with this?
¹ On some installs / for some users, Create New → Text File… results in a two-byte file containing a newline; for others it results in a zero-byte file with a *.txt extension. It’s the latter that’s the problem.
Looks like a KDE specific issue, on Gnome creating an empty file (e.g. via touch test.txt) makes the file regularly open in “Text Editor” (or whatever default you may have for .txt files).
Although zero file size is certainly a special case. We cannot really predict the file content so we also cannot guess what file type user had in mind. GNOME looks more consistent here by giving generic “I do not know” answer.
The only solution would be giving text/plain higher priority.
No wonder that it works with Leap as the new MIME type was introduced by a GPXSee version which is only available for Tumbleweed in the official repos (see first post).
Issue is easily reproducible on Tumbleweed.
Even if you change the standard file association (to open with kate), an empty txt file is still seen as vnd.70mai file.