3

I just upgraded to Ubuntu 11.10 and wanted to set up .z4 files so that they would be opened by gargoyle-free (as an example) although gargoyle-free is not an option in the default application list that arises from the context menu. It used to be possible to manually enter a default application directly from the dialog, however the feature seems to have been replaced by a simplified (and unfortunately useless) "Find application online" button. Is there perhaps a new way to do this that doesn't involve messing with the command line?

Some applications (like clementine audio player) aren't listed in "Other Applications".

Bruno Pereira
  • 73,643

4 Answers4

3

Right click on the file you want to open, select Properties, go to tab Open with.

enter image description here

If the application you want to use to open a file is not listed on the program list select Other Applications and press the button Add.

Bruno Pereira
  • 73,643
2

The button to add a new program to that list was removed in GTK+ 3.0, which is used in Ubuntu 11.10.

The good news is that you can add programs to that list manually by adding a .desktop launcher in ~/.local/share/applications.

The bad news is that the "Create Launcher" dialog was part of GNOME 2.0, so you need to create a .desktop lanucher manually. You could copy one from /usr/share/applications, open it in Gedit (it's just a text file) and modify the Exec and Name lines (and any other lines if you want).

imgx64
  • 201
2

Starting in gnome3 only apps whose .desktops have a %letter on the Exec= line will be shown on the right click > Properties menu, they also obviously need an appropriate MimeType= line.

In the 2nd example given here, clementine, the current Exec= is "Exec=clementine"

To show in the r.click > Properties menu it would need to be this, though other letter possibilities would be f or F

Exec=clementine %U
doug
  • 17,026
  • thanks, the %U proved to be the missing thing that was preventing my .desktop file from being listed as an option – Anentropic Aug 08 '12 at 10:49
0

The actual recipe for doing this on 11.10 is hidden behind the answers of imgx64 and doug and one extra step.

  1. To create custom launchers and edit existing ones with GUI you need to install the Main Menu app by typing the following into the console: sudo apt-get install alacarte

  2. When creating or editing the existing launchers with this app, make sure that the Command text field contains the %U template variable for the path parameter, e.g. clementine %U as it was noted by doug.

After that you will see your application in the Other Applications list of the Open With dialogues.