acroread 9 from jaunty's partner repository doesn't associate itself with PDF mime-types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acroread (Ubuntu) |
Fix Released
|
Undecided
|
Brian Thomason |
Bug Description
Binary package hint: acroread
Steps to reproduce:
1. Install acroread 9.1.0-7jaunty2 from the partner repository. You can see the "Adobe Reader 9" item on Applications-
2. Right-click on any .pdf file. Expected behavior: There's a "Open with Adobe Reader 9" option. Actual behavior: There's not that option.
3. Click on "Open with other appliation...". The "Open with" dialog appears. Expected behavior: You can select "Adobe Reader 9" to open the .pdf file. Actual behavior: The "Adobe Reader 9" option is not in the list.
I can't reproduce this issue if I use the Adobe Reader 9 downloaded from the Adobe's website[1]. Moreover, the Adobe Reader 8 from the Adobe's website neither has this issue. Therefore, it seems to be a problem in the Canonical's package.
[1] http://
summary: |
- acroread 9 from jaunty's partner repository doesn't appear on "Open with - other application" dialog + acroread 9 from jaunty's partner repository doesn't associate itself + with PDF mime-types |
Changed in acroread (Ubuntu): | |
status: | Incomplete → Fix Committed |
status: | Fix Committed → Fix Released |
The "problem" seems to be on the acroread.postinst file, lines 145-171. This is what Canonical's package contains:
case "$1" in
ReadInstallDir ="/opt"
MakeLibGnomeSp eechLinks "$ReadInstallDir" intellinux 2>/dev/null
MakeLibLDAPLin ks "$ReadInstallDir" 2>/dev/null
configure)
#rm -f /usr/bin/acroread 2>/dev/null r/Adobe/ Reader9/ bin/acroread" /usr/bin/acroread 2>/dev/null
#ln -s "$ReadInstallDi
#rm -f /etc/bash_ completion. d/acroread. sh 2>/dev/null r/Adobe/ Reader9/ Resource/ Shell/acroread_ tab" /etc/bash_ completion. d/acroread. sh 2>/dev/null
#ln -s "$ReadInstallDi
#rm -f /usr/share/ man/man1/ acroread. 1.gz 2>/dev/null r/Adobe/ Reader9/ Resource/ Shell/acroread. 1.gz" /usr/share/ man/man1/ acroread. 1.gz 2>/dev/null
#ln -s "$ReadInstallDi
#Canonical does not want us to associate MIME types because they say they do it themselves.
#for i in application/pdf application/ vnd.adobe. xfdf application/vnd.fdf application/ vnd.adobe. xdp+xml application/ vnd.adobe. pdx application/fdf application/xdp application/xfdf application/pdx; do ReadInstallDir/ Adobe/Reader9/ Reader/ intellinux/ bin:$PATH" xdg-mime default "AdobeReader. desktop" "$i" >/dev/null 2>&1
# PATH="$
#done
#Canonical does not want a Desktop icon.
And this is what Adobe's package contains:
configure)
ReadInstallDir ="/opt"
#MakeLibGnomeS peechLinks "$ReadInstallDir" intellinux 2>/dev/null
MakeLibLDAPLin ks "$ReadInstallDir" 2>/dev/null
rm -f /usr/bin/acroread 2>/dev/null r/Adobe/ Reader9/ bin/acroread" /usr/bin/acroread 2>/dev/null
ln -s "$ReadInstallDi
rm -f /etc/bash_ completion. d/acroread. sh 2>/dev/null r/Adobe/ Reader9/ Resource/ Shell/acroread_ tab" /etc/bash_ completion. d/acroread. sh 2>/dev/null
ln -s "$ReadInstallDi
rm -f /usr/share/ man/man1/ acroread. 1.gz 2>/dev/null r/Adobe/ Reader9/ Resource/ Shell/acroread. 1.gz" /usr/share/ man/man1/ acroread. 1.gz 2>/dev/null
ln -s "$ReadInstallDi
# Cannonical does not want us to associate MIME types because they say they do it themselves. Then so be it, atleast for 1
build.
for i in application/pdf application/ vnd.adobe. xfdf application/vnd.fdf application/ vnd.adobe. xdp+xml application/ vnd.adobe. pdx app
PATH= "$ReadInstallDi r/A...
lication/fdf application/xdp application/xfdf application/pdx; do