How to change the default program for pdf (only for current user)

On Ubuntu 10.10 I would like to change my default pdf viewer to acroread.

I do not have sudo privilidges, so I want to make this change for my own user only. Acroread is already installed.


To set the file associations :

  1. Right Click on the file
  2. Choose Properties
  3. Go to the Open With tab.
  4. Choose your file viewer. For eg. acroread.
  5. That's it. Click on close.

alt text

Also see this answer for an alternative method.


To set the default program to pdf

  1. gedit ~/.local/share/applications/defaults.list
  2. Add application/pdf=acroread.desktop or application/pdf=AdobeReader.desktop

The correct name of the .desktop file can be found in /usr/share/applications/

This will set the pdf default program as adobe reader