FSearch not opening console apps

Hi.

I’m gonna start by saying that this is not my first rodeo with FSearch. Once, I had to “fix it” because the folders were opening with the space analyzer (instead of the file manager) and a couple of months ago vscodium also changed -still can’t understand why- the association after an update. In both instances the solution was straightforward:

xdg-mime query default inode/directory (check current status)
xdg-mime default pcmanfm.desktop inode/directory (set new default, in this case, pcmanfm)

Being using micro recently (a lot, indeed :laughing: ) and noticed that right-clicking text files in FSearch fails silently without errors. It only happens with any console app like nvim ; the graphical ones work correctly. Seems like another easy job for xdg-mime but not this time: ~/.config/mimeapps.list has the relevant text/plain and inside of their respective *.desktop files the right entries exist:

Terminal=true
Exec=TheBinaryName

Fair enough, maybe it needs a little “push” so I changed the Exec line with, ie, terminator -e micro and still failed. Funny thing is, pcmanfm works perfectly fine by default if you right-click and select the likes of micro/neovim for text files. So I went further with a:

strace --output=fsearch.txt fsearch

And found that FSearch is parsing a myriad of possible console apps except for terminator and kitty. As such, I’m betting this is a FSearch’s bug.

If you guys have another idea I’m all ears. :nerd_face:

Regards.