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
Save the file . Thats it done.
|
|||||||||||||||
|
|
Try typing this in your bash terminal (Ctrl+Alt+T):
|
|||||
|
|
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.
|
|||||
|
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 -
|
|||||||||||||
|
|
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. |
|||
|
|
Using
|
protected by Community♦ Oct 24 '11 at 0:49
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.










