In earlier versions of Ubuntu (10.10-) there was an option in the "open with" tab in the properties window, to add a custom command to open a file. However, this is no longer the case in Ubuntu 11.10. Is there any way that I can add these file type associations with a command of my choice rather than the applications detected by the system.
|
As aneeshep's answer explains, the key is creating an appropriate Solution: Use Ubuntu Tweak
In this how-to, we look at how to set up Nautilus to open 1. Install Ubuntu Tweak
2. Find the MIME description for your file extension
3. Add a custom program to open your filetype
|
|||||||||||||||||||||
|
|
There is a workaround for this issue. as an example i am adding sublime(an ide) to the list. 1). Open a terminal and run this command:
2). Edit the new file and make necessary changes
Please note that you might end up with duplicate launchers in your dash with this method. To prevent this you can add Save the file . That's it, done.
|
|||||||||||||||||||||
|
Using
|
|
The trick is to add " %U" in Exec command of the .desktop file. Then the program will appear in available programs list to open a file with. You can create/edit desktop files easily with alacarte. Type "alacarte" in terminal to run it, or if it is not installed you will get notified about this and asked to install it first. |
|||||||||||||
|
For 11.10 and newer:You open nautilus, right-click on your file, select properties. In the properties window, there is a "Open With" tab. Go there, choose your application from one of:
Then -
|
|||||||||||||||||||||
|
|
This may do it. Try Ubuntu Tweak's file type manager. Go to the 'admins' section, open the File Type Manager, Select 'All' file types, find and select your file type in the long list, choose edit, choose the Add button, click on the 'custom command' twisty at the bottom and type the custom command you need it to use to open the file the way you desire.
|
|||||||||||||
|
|
Try typing this in your bash terminal (Ctrl+Alt+T):
|
|||||||||||||
|
protected by Community♦ Oct 24 '11 at 0:49
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?









