fedora Chrome出现adobe flash is out of date的解决方法

来源:互联网 发布:java数组学生管理系统 编辑:程序博客网 时间:2024/06/06 17:24

转载自 http://www.linuxdiyf.com/linux/27880.html

1. 安装chrome

2. 然后到/home/你的计算机用户名/.config/google-chrome/ (注意,如果不是用命令行查看,而是使用GUI的话,home/cong/下是要按ctrl+H才显示系统文件)

 
看看有没有PepperFlash这个目录,网上有些网友说,是在/opt/google/chrome/,我没有发现。然后,如果里面是空的话就代表chrome并没有flash插件了。
 
我们需要到官网下载flash player,网址:https://get.adobe.com/flashplayer/
 
不过这里要说明一下:
一般的浏览器使用的是npapi,即adobe flash player,但chrome则改为使用ppapi,即pepperflash。
我们这次是要下载pepper,所以必须使用chrome访问adobe的官网,因为adobe的官网下载flash是会自动检测浏览器的,如果使用firefox,会自动下载npapi,这就不适合chrome了。
 
下载后,压缩包里有个libpepflashplayer.so的文件,这就是pepperflash把这个.so文件拷贝到/home/你的计算机用户名/.config/google-chrome/PepperFlash这个目录下。
然后,需要让chrome启动时,自动关联这个.so文件,打开终端:
sudo vim /usr/share/applications/google-chrome.desktop
 
在这个配置文件的108行,“Exec=/usr/bin/google-chrome-stable %U”后加入“ --ppapi-flash-path=/home/你的计算机用户名/.config/google-chrome/PepperFlash/libpepflashplayer.so”
即变为Exec=/usr/bin/google-chrome-stable %U --ppapi-flash-path=/home/你的计算机用户名/.config/google-chrome/PepperFlash/libpepflashplayer.so
中间有个空格,保存文件。
 
这是重新打开chrome,在地址栏输入chrome://plugins/
确保打开了flash组件,到这里,就ok了。

1 0