JDK-6799791 : Ubuntu: Desktop....open("myPdfFile.pdf") doesn't open with correct program
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u10
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: x86
  • Submitted: 2009-01-31
  • Updated: 2011-04-28
Description
FULL PRODUCT VERSION :
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Ubuntu 8.10

EXTRA RELEVANT SYSTEM CONFIGURATION :
Installed adobe reader from the multiverse extra repository,
right-clicked on a PDF file and told it to open all PDF files with adobe reader

A DESCRIPTION OF THE PROBLEM :
Ubuntu 8.10 out of the box uses document viewer 2.24.1 to open PDF files.
I added the multiverse ubuntu repo,
apt-get installed acroread,
and configured PDF files to open with that adobe reader.
Yet Desktop.getDesktop().open("myPdf.pdf") still opens it with the document viewer.

Thunderbird etc use the correct program for opening a pdf file: adobe reader.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
see description

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Adobe reader opened.
ACTUAL -
Document viewer opened.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Desktop.getDesktop().open("myPdf.pdf");
---------- END SOURCE ----------