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.

In Ubuntu, is there any way to obtain a list of file associations for applications that haven't yet been installed? I'd like to find the files that a not-yet-installed software application (e.g. google-chrome or firefox) can open.

I currently don't know of any feature in the Ubuntu Software Center (or another application) that can list the filetypes associated with a specific application - does such a feature exist?

share|improve this question
    
The file associations for installed applications can be found in usr/share/applications, but I don't yet know how to find the file associations for applications that aren't yet installed. –  Anderson Green Nov 30 '12 at 20:25
1  
You can just modify your original question at askubuntu.com/questions/223924/… –  Goddard Nov 30 '12 at 20:29
    
@Goddard These are really two separate questions - this one is asking whether it's possible to obtain a list of file types for a specific application, while the other is asking how to obtain a list of applications for a specific file type. –  Anderson Green Nov 30 '12 at 20:36
1  
manpages.ubuntu.com/manpages/lucid/man1/xdg-mime.1.html might help. –  Mateo Nov 30 '12 at 20:47

1 Answer 1

up vote 4 down vote accepted

PackageKit allows you to search for applications by mime-type. Sadly, the Ubuntu devs haven't put much effort into integrating PackageKit with Ubuntu by default, but it still works surprisingly well.

First, make sure you've installed the graphical toolkit for PackageKit, gnome-packagekit-tools Install gnome-packagekit-tools.

Then, run gpk-install-mime-type on the command line, followed by a mime-type. For example:

gpk-install-mime-type text/plain

Screenshots:

First gpk-install-mime-type confirmation dialog

Dialog listing applicable packages

share|improve this answer
1  
Is there a command-line interface for packagekit? I want to find out how to obtain a list of applications associated with a specific mime type. –  Anderson Green Nov 30 '12 at 21:10
    
There is a program called pkcon for this specific purpose: packagekit.org/pk-using.html –  Anderson Green Nov 30 '12 at 21:17
    
If you can figure out how to use it for this purpose, please edit my answer or add your own. –  Flimm Nov 30 '12 at 21:27

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.