That's pretty weird and annoying. I hope I can help you a bit into the correct direction :-)
Does it happen with any file type? txt? torrent? mp3?
In ~/.local/share/applications/mimeapps.list
there is a list of files to be opened by an application. Have a look with more ~/.local/share/applications/mimeapps.list
and check if you can find something weird here.
There is a nifty command, mimeopen
, that allows you to alter what program should open what file (and that updates the file I mentioned before). It will "guess" what would be the most logical option based on the file you feed it.
Examples:
$ mimeopen -d /home/{your_name}/Documents
Please choose a default application for files of type inode/directory
1) Open Folder (nautilus-folder-handler)
2) Other...
$ mimeopen -d \[Mazui\]_Ore_No_Imouto_-_14_\[SD\]\[7EA51F50\].mkv
Please choose a default application for files of type video/x-matroska
1) Enqueue in SMPlayer (smplayer_enqueue)
2) Movie Player (totem)
3) SMPlayer (smplayer)
4) Banshee (banshee)
5) VLC media player (vlc)
6) Other...
If it is a problem regarding mimetypes, this should solve it.