Home » , , , , » How To Add Custom Command in File Properties In GNOME 3 / How To Change Default Preffered Application in GNOME 3

How To Add Custom Command in File Properties In GNOME 3 / How To Change Default Preffered Application in GNOME 3

Written By Unknown on Friday, 16 March 2012 | 05:16



GNOME 3 has dropped its capability to add custom command as the default application to open specific file with specific formats. In Gnome 2, we could do this by select at the file right click > properties > Custom Command. But, in Gnome 3, this feature is dropped.


And so, how to replace the default application to open specific file with our preferred favorite application. Example : we want to replace Ubuntu Software Center with Gdebi to open .deb files as default. The only way is : we must add our application manually, by editing application list file configuration named /etc/gnome/defaults.list or by creating a local mimetype list in our home folder named /home/ourname/.local/share/applications/mimeapps.list.


Both ways work, but the easier is by editing file /etc/gnome/defaults.list. To edit this file, just simply type in terminal : sudo gedit /etc/gnome/defaults.list. After opened, we will see long lines about default mimetypes with their default applications to open.


As an example, we want to replace Ubuntu Software Center with Gdebi, these are the steps :

  1. The most first, of course, we have to install gdebi by apt : sudo apt-get install gdebi

  2. Find two lines and replace them

    application/x-deb=ubuntu-software-center.desktop

    application/x-debian-package= ubuntu-software-center.desktop

  3. with these :

    application/x-deb=gdebi.desktop

    application/x-debian-package=gdebi.desktop

  4. logout and login back.


If we want to replace another default applications (such as : evince with foxit-reader to open pdf), just do the same way. Find the file type, and replace its defaults application to open the file.

Share this article :

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Turorial Grapich Design and Blog Design - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger