You are here

Setting a default application on DICE

Printer-friendly versionPrinter-friendly version

On DICE some types of files - for instance PDF documents - have a default application. This is the application which will be used if a file's icon is clicked. If you don't like the default, it can be changed. This page explains how to do that.

Find out the MIME type

Each file has a "MIME type". To find out what it is, start a terminal window and type mimetype and the name of the file. For example:

% mimetype guide.pdf
guide.pdf: application/pdf

The MIME type of a PDF document is application/pdf.

Find or set the default application

To find out the default application for a particular MIME type, use gvfs-mime --query. For instance:

% gvfs-mime --query application/pdf
Default application for 'application/pdf': evince.desktop
Registered applications:
	evince.desktop
	AdobeReader.desktop
	kde4-okularApplication_pdf.desktop
	evince-previewer.desktop
	inkscape.desktop
	gimp.desktop
	gv.desktop
	livna-xv.desktop
Recommended applications:
	evince.desktop
	AdobeReader.desktop
	kde4-okularApplication_pdf.desktop
	evince-previewer.desktop
	inkscape.desktop
	gimp.desktop
	gv.desktop
	livna-xv.desktop

Use gvfs-mime --set to change the default application - for example:

% gvfs-mime --set application/pdf gv.desktop
Set gv.desktop as the default for application/pdf
Last reviewed: 
26/07/2016

System Status

Home dirs (AFS)
Network
Mail
Other services
Scheduled downtime

Choose a topic