The bash script that uses ROFI is:
xdg-open "$(locate home | rofi threads 0 -dmenu -i -p "locate:")"
This works fine from URXVT (command line), but when I bind this to a key and open ROFI, Every thing works (for example the directory opens in thunar) except when I try to open a text file like .Xdefault
I have already checked my mime settings and it works, because the file opens fine with nano using mimeopen and xdg-open.
Something happens in the background, because when I exit out of I3, I see the file open in nano along with some gibberish. I can X out of nano to get to the bash prompt.
Normally I don't ask questions, but I am not even sure how to check for a solution. please let me know how this can be fixed.
Edit: Just be clear when I open the same text file in I3 using xdg-open it opens it in nano (in the same urxvt terminal). "xdg-mime query default text/plain" returns "nano.desktop"