When I'm using PCManFM, I sometimes do the following. I right-click in an empty place in ~/, and choose Make new... --> Empty File. I type some text in it, like 'blabalballabl', and then I save it, e.g., as test.
Now, I double-click this file. Leafpad won't open the file, but instead PCManFM will say that the file is executable. It then asks if I want to execute the file or not. I don't want this to happen, I just want Leafpad to open the file. Right-clicking the file, then changing the default application to open this type of files doesn't help.
Is there any way to force PCManFM to open files like these with Leafpad by default?
I'm using Lubuntu 11.10 32 bit.

PCManFM asks to execute the file

Changing the default program to open the file doesn't help.

mimeapps.list looks OK; text/plain should be opened by Leafpad.

~/.local/share/applicationsismimeapps.list. I removed the mimecache in/usr/share/applications, and I moved thedefaults.listin there to another location to be sure, but this didn't help me.~/.local/share/applications/mimeapps.listcontains the right associations, as seen in the screenshot I've added.Thanks for your help.
– Exeleration-G Jan 02 '12 at 13:01leafpad.desktopfile in~/.local/share/applications. I've copied it from/usr/share/applicationsto~/.local/share/applications, and now it seems to work. Thanks! – Exeleration-G Jan 02 '12 at 16:31~/.confg/mimeapps.list, as suggested by https://askubuntu.com/a/572213/ – Denilson Sá Maia Feb 21 '16 at 01:41