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.

A while ago, I followed tutorial which told me how to "install" sublime so that it behaved like a standard program, with a unity icon I could lock on the launcher. I also set Sublime so that it was the default application to open text files.

There is still one thing that it does not do. If I drag a file from nautilus onto the launcher, all the apps fade away, but the ones which can open it do not (Gedit does not fade away). I can then drop the file onto an application which can handle it and that application with open it.

This does not happen for Sublime, how do I configure this to happen?

share|improve this question
    
How did you get it into the launcher? Did you write a .desktop file? –  Seth Mar 28 '13 at 17:30
    
I can't find the tutorial I used, but I am pretty sure that was how I did it. –  superbriggs Mar 28 '13 at 17:35
add comment

1 Answer

up vote 2 down vote accepted

You need to add the MIME types of the files you want to open to the .desktop file.

Propably the mostr easy way to do this is to use Arronax:

  1. Open Arronax
  2. Drag the Sublime symbol from the Dash into the Arronax window. This loads the .desktop file.
  3. Open the "MIME types" tab in Arronax
  4. Drag some files of the type you want to open from nautilus into the MIME types input field. You will see the MIME types added.
  5. Save the .desktop file in ~/.local/share/applications/. The "User App folder" button in the "Save" dialog will take you to that folder.

Arronax with MIME taype tab open

share|improve this answer
add comment

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.