Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ever since installing Bless Hex Editor, all unknown files and text files automatically open with Bless instead of gedit. How do I change it back? I don't want to have to manually associate files with gedit, I just want gedit to be the default if there's no other application set up to open the file.

Solution:
modify ~/.local/share/applications/mimeapps.list

[Default Applications] 
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop
share|improve this question
    
Can you post the contents of /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list on paste.ubuntu.com ? –  imgx64 Oct 14 '11 at 12:39
    
mimeapps.list defaults.list was just replaced with the distro default after upgrading to 11.10. I can see the bless entries entries there. Can I just delete them to revert back to the system default? –  dmuir Oct 17 '11 at 5:45
    
to answer my own question, yes, deleting the offending lines from mineppas.list fixes things. Firefox is still wanting to open stuff with bless though... –  dmuir Oct 17 '11 at 6:19
    
That's odd, Firefox seems to use the system settings on my computer. Did you try restarting the computer (or restarting Firefox) after deleting the bless entries in mimeapps.list? –  imgx64 Oct 17 '11 at 15:57
    
Ah, fixed it. The problem was that there is no default for application/octet-stream, so it was using bliss as it existed under "Added Association". So to fix, instead of removing the line in Default Applications: application/octet-stream=bliss.desktop I changed it to: application/octet-stream=gedit.desktop –  dmuir Oct 21 '11 at 4:47

2 Answers 2

up vote 3 down vote accepted

modify ~/.local/share/applications/mimeapps.list

[Default Applications] 
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop

This reverts the text/plain app to using the system default in /usr/share/applications/defaults.list, and changes the default application/octet-stream. It seems that Firefox labels this mime-type as "Unknown".

share|improve this answer

right click on the unknown file, properties, open with. If your desired application is in the list, click on it, if not then click on the Show Other Applications and select the one you want. Cheers!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.