59******91@qq.com
deepin
2018-11-30 04:42 你可以参考一下我的设置
~$ cat /usr/share/applications/firefox-zh.desktop
---------------------------------------------------------------------------------------------------------------------------------------------------
[Desktop Entry]
Encoding=UTF-8
Name=Firefox
Name[zh_CN]=火狐浏览器
Exec=env MOZ_GTK_TITLEBAR_DECORATION=system /opt/firefox/firefox %U
X-MultipleArgs=false
Type=Application
Icon=firefox-zh
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=New Window
Exec=env MOZ_GTK_TITLEBAR_DECORATION=system /opt/firefox/firefox
[Desktop Action new-private-window]
Name=New Incognito Window
Exec=env MOZ_GTK_TITLEBAR_DECORATION=system /opt/firefox/firefox --incognito
~$ cat /usr/share/applications/firefox-zh.desktop
---------------------------------------------------------------------------------------------------------------------------------------------------
[Desktop Entry]
Encoding=UTF-8
Name=Firefox
Name[zh_CN]=火狐浏览器
Exec=env MOZ_GTK_TITLEBAR_DECORATION=system /opt/firefox/firefox %U
X-MultipleArgs=false
Type=Application
Icon=firefox-zh
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=New Window
Exec=env MOZ_GTK_TITLEBAR_DECORATION=system /opt/firefox/firefox
[Desktop Action new-private-window]
Name=New Incognito Window
Exec=env MOZ_GTK_TITLEBAR_DECORATION=system /opt/firefox/firefox --incognito
Reply Like 0 View the author


中文 

因为商店里面安装的火狐,会因为没有权限无法自己更新而一直提示不能更新。
所以,就自己写了个firefox.desktop文件放到,/usr/share/applications文件夹下。
实际的应用程序文件就是从官网上下载的firefox解压后放在自己的home目录下,desktop文件里面写入路径。
这样就可以很容易的自己升级了,目前没有大的问题。唯独的一个小问题是。如果从微信或者邮件里面点击链接,
火狐会打开一个新窗口,而且打开的页面是火狐主页,而不是点击的那个链接。虽然可以复制,再粘贴过来访问,但是毕竟有多余的操作步骤。
有哪位解决过这个问题吗?