Ubuntu自带firefox与firefox开发版的混淆

上网、浏览、聊天、下载等
回复
半卷春秋
帖子: 34
注册时间: 2014-03-03 19:34
系统: ubuntu

Ubuntu自带firefox与firefox开发版的混淆

#1

帖子 半卷春秋 » 2017-03-01 22:31

ubuntu gnome16.04装了firefox和firefox开发版,开发版是二进制包,我移到了/opt目录,并在/usr/share/applications自己创建了firefox_dev.desktop文件,如下
[Desktop Entry]
Name=Firefox Developer
GenericName=Firefox Developer Edition
Exec=/opt/firefox_dev/firefox
Terminal=false
Icon=/opt/firefox_dev/browser/icons/mozicon128.png
Type=Application
Categories=Application;Network;X-Developer;
Comment=Firefox Developer Edition Web Browser.
系统自带的那个的firefox.desktop文件省略如下
[Desktop Entry]
Version=1.0
Name=Firefox
GenericName=Web Browser
Exec=firefox %u
Icon=firefox
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
Keywords=web;browser;internet;
Actions=new-window;new-private-window;
X-Desktop-File-Install-Version=0.23
------------------------------
两个firefox都可以dash中搜到,原生的红色图标,开发版蓝色图标,点击红色图标是原生的,但点击蓝色图标按理活动的是蓝色图标,但是红色图标却激活了,但打开还是正常的开发版,如附件中的两幅图,有点类似这个链接提到的:
https://askubuntu.com/questions/852613/ ... nome-shell
答案中提到什么WM_CLASS property不明白,那里就一个火狐开发版,我的问题两个,而且点击蓝色的开发版火狐的图标,启动的是红色图标的开发版火狐,虽然我确实是想打开开发版,但图标怎么变了,desktop文件已经指定Icon=/opt/firefox_dev/browser/icons/mozicon128.png,另外我安装的Firefox已经配好flash ,在/usr/lib64/mozilla/plugins/下,Firefox可以正常使用,但开发版火狐提示flash未安装,在下面的链接中
https://developer.mozilla.org/zh-CN/Add ... s_Plug-ins
提到了当一个基于Gecko的浏览器启动时,它通过检查如下的目录去寻找插件:
Linux
1.由 MOZ_PLUGIN_PATH 指出的环境变量。
2.~/.mozilla/plugins.
3.Application directory/plugins,其中 Application directory 是应用的安装目录。
4./usr/lib/mozilla/plugins (在64位系统中,是 /usr/lib64/mozilla/plugins).
5.Plug-ins within toolkit bundles.
6.Profile directory/plugins,其中 Profile directory 是一个用户profile目录。
flash已经在搜索目录下为何找不到?
哪位可以帮下,一个是firefox开发版的图标重复且错乱的问题,另一个是开发版为何不能使用另一个firefox的flash
下面图片中先是1.png,点击蓝色开发版火狐图标就变成2.png,那个红色火狐图标原本对应的是系统带的,但2中打开的却是开发版火狐
附件
2.png
1.png
taohunter
帖子: 1555
注册时间: 2012-03-31 3:29

Re: Ubuntu自带firefox与firefox开发版的混淆

#2

帖子 taohunter » 2017-03-02 0:34

1. 下面这个链接中给出了如何在一个系统内安装运行不同版本的firefox,并且使用不同的程序icon、不同的profile的方法。虽然他是在缺省的unity环境下,但方法应该基本上相同的。

https://blog.nightly.mozilla.org/2016/0 ... nity-dock/

2. 关于开发版不能使用flash的问题,

a. 是否使用的是和正式版相同的profile,如是,进入开发版所在的目录,用下面的命令启动firefox,新建一个profile,不要和正式版的profile混起来用。

代码: 全选

./firefox -P
b. 看一下“附加组件“里shockwave flash是否处于可用状态,也可以在地址栏直接输入about:plugins。看不懂的话截图贴上来。
三年后终于回到16.04--稳定了!
回复