Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu 12.04. I have a file with an extension .sbd and I have a jar file (that I've written) that can open these extensions. However, I want to be able to click on the .sbd file and have the jar file open it. The issue is the open with tab in the .sbd file's properties won't let me browse for the jar file. How can I do this?

share|improve this question

The solution was to first create a mime type for my custom file format using the answer for this question:

Then I had to create a .desktop file for my application that looks something like this:

[Desktop Entry]
Name=My Application
Exec=java -jar /path/to/my-application

Finally, I had to register my mimetype with the desktop file by adding the following line to /usr/share/applications/defaults.list:

share|improve this answer

Your Answer


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.