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.

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

1 Answer 1

The solution was to first create a mime type for my custom file format using the answer for this question: http://stackoverflow.com/questions/30931/register-file-extensions-mime-types-in-linux

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.