Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378359 - Feature Request: Google Chrome PDF Reader USE flag
Summary: Feature Request: Google Chrome PDF Reader USE flag
Status: RESOLVED DUPLICATE of bug 341937
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mike Gilbert
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 16:18 UTC by Richard
Modified: 2011-08-08 18:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2011-08-08 16:18:34 UTC
The Arch Linux people have instructions on how to get the Official Google Chrome PDF Reader working inside of Google Chromium.

https://wiki.archlinux.org/index.php/Chromium#Open_PDF_files_inside_Chromium

I am running ~amd64 with the stable Chromium ebuild, which works well for me, and followed the instructions on how to do this. I extracted libpdf.so and placed it in /usr/lib64/chromium-browser/

The following is a summary of what I did. It might be a good idea to do it in an empty directory to avoid possible file name collisions.

wget https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
ar vx google-chrome-stable_current_amd64.deb
rm debian-binary control.tar.gz
tar -xf data.tar.lzma ./opt/google/chrome/libpdf.so
mv -i ./opt/google/chrome/libpdf.so /usr/lib64/chromium-browser/
rm -r ./opt/ data.tar.lzma google-chrome-stable_current_amd64.deb

There is also probably a cleaner way of extracting this, but I am not familiar with the use of ar, so I did it this way.

I don't know if Google hosts explicit versions of chrome on their servers, but if they do, it seems to me that we could implement this with a USE flag in the chromium ebuild. Otherwise, it would still be a USE flag, but in that case, the flag probably should enable a post install dependency on a second www-plugins/chrome-pdf-9999 ebuild.

I couldn't find direct download links to individual versions, but I also don't have time to look. I am posting this in the bug tracker so other people with more time on their hands can look into this possibility.
Comment 1 Richard 2011-08-08 16:21:22 UTC
Just to be clear, this works on Gentoo and people on the Gentoo forums are doing it. I added the forum thread url to this bug.
Comment 2 Mike Gilbert gentoo-dev 2011-08-08 17:45:12 UTC
This has already been requested, and the current chromium maintainers don't want to do it.

You are welcome to use the package I maintain in my overlay, which basically does exactly what your instructions say.

https://bitbucket.org/floppym/floppym-overlay/src/default/www-plugins/chromium-pdf/

layman -a floppym
emerge www-plugins/chromium-pdf

*** This bug has been marked as a duplicate of bug 341937 ***
Comment 3 Richard 2011-08-08 18:15:59 UTC
(In reply to comment #2)
> This has already been requested, and the current chromium maintainers don't
> want to do it.
> 
> You are welcome to use the package I maintain in my overlay, which basically
> does exactly what your instructions say.
> 
> https://bitbucket.org/floppym/floppym-overlay/src/default/www-plugins/chromium-pdf/
> 
> layman -a floppym
> emerge www-plugins/chromium-pdf
> 
> *** This bug has been marked as a duplicate of bug 341937 ***

Maybe there is a way that we can ask Google to release the source code. That would make this a much nicer situation.

Anyway, thanks for the information about your overlay.