I am having a huge problem. Whenever i try to open a file gedit tries to open it. For example I download something with firefox, i click on the file to open it and gedit opens! Even in when I want to open a non-java file(images,pdfs,..) from my Eclipse explorer it gedit tries to open. More strangely, whenever, i try to open my home folder or any other folders such as Music, pictures,... from menu it happens! Can someone help me? Thx
You might need to look in your nautilus and tell it on what to do to an executable file.
Files might not have default application when opening it.
Set a default application of that file. If gedit is already selected and you want to change it just go over with your desired application.
Have a look at the contents of mimeapps.list with:
Somewhere in there you will have a settings that says it should open folders or specific files with gedit.
The heading with [default application] can be used to create a new/default mimeapps.list:
On Linux for some reason Firefox doesn't recognize real mimetype of binary files and treats them all as
application/octet-stream
. And it opens this mimetype (and thus .pdf, .doc and other files) in a default text editor - Gedit in my case. After long googling and messing with Linux and Firefox config files it turned out that the fix is to delete a line beginning withapplication/octet-stream
in mimeapps.list.On openSUSE 13.2 mimeapps.list was in ~/.config , but on some distros it's in ~/.local/share/applications/ or perhaps in some other place.