I have strange behaviour on my Xubuntu installation when opening text files from the File manager by double click.
Many text files with the extension .txt from a SMB share do not react on a double click. Same if I copy them to a local drive. When I create a new file in the file manager and name it "text.txt" it will open upon double click.
I found many posts about defining the default editor in /use/share/application/defaults.list or .local/share/application/with some override settings and references to the MIME Editor. I tried them and all have text/plain set to gedit which is what I need.
I can not understand why it just does not work with all text files. I can not rule out that the affected files have been created in Windows.
Any ideas what is causing that and how I can fix that? Currently workaround is to open every file with right mouse click and select gedit manually from 'Open with Other Application...'.
In case it matters, I am using Xubunut/xfce 16.04. I have the same with Thunar and Nemo file managers
Added info: I copied a non working text file to my local drive, opened it with "Open with Other Application.." and edited it a bit with gedit and saved it again. I wanted to make sure the format is a valid gedit writable format. I got no errors. Still the file does not open by double click.