让自行安装的Firefox 57能够从外部打开链接
Tofloor
poster avatar
jamesmackerel
deepin
2017-11-28 00:44
Author
本帖最后由 jamesmackerel 于 2017-11-27 16:46 编辑

Deepin上的Firefox迟迟没更新到57,所以我自己从官方网站上下载了一个下来,放到了/opt里。
为了实现从外部应用点击链接的时候能够直接在Firefox中打开的功能,特意把官方的图标文件复制了一份出来。只要改动Exec=后面的可执行文件路径即可。其实关键点还是在于后面的%u,我猜测这个应该是传入调用者自定义的参数。
这个文件应该放在 /usr/share/applications 这个目录中。下面给出文件内容,供各位修改。

  1. [Desktop Entry]
  2. Name=Firefox
  3. Name[bg]=Firefox
  4. Name[ca]=Firefox
  5. Name[cs]=Firefox
  6. Name[el]=Firefox
  7. Name[es]=Firefox
  8. Name[fa]=Firefox
  9. Name[fi]=Firefox
  10. Name[fr]=Firefox
  11. Name[hu]=Firefox
  12. Name[it]=Firefox
  13. Name[ja]=Firefox
  14. Name[ko]=Firefox
  15. Name[nb]=Firefox
  16. Name[nl]=Firefox
  17. Name[nn]=Firefox
  18. Name[no]=Firefox
  19. Name[pl]=Firefox
  20. Name[pt]=Firefox
  21. Name[pt_BR]=Firefox
  22. Name[ru]=Firefox
  23. Name[sk]=Firefox
  24. Name[sv]=Firefox
  25. Comment=Browse the World Wide Web
  26. Comment[bg]=Сърфиране в Мрежата
  27. Comment[ca]=Navegueu per el web
  28. Comment[cs]=Prohlížení stránek World Wide Webu
  29. Comment[de]=Im Internet surfen
  30. Comment[el]=Περιηγηθείτε στον παγκόσμιο ιστό
  31. Comment[es]=Navegue por la web
  32. Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
  33. Comment[fi]=Selaa Internetin WWW-sivuja
  34. Comment[fr]=Navigue sur Internet
  35. Comment[hu]=A világháló böngészése
  36. Comment[it]=Esplora il web
  37. Comment[ja]=ウェブを閲覧します
  38. Comment[ko]=웹을 돌아 다닙니다
  39. Comment[nb]=Surf på nettet
  40. Comment[nl]=Verken het internet
  41. Comment[nn]=Surf på nettet
  42. Comment[no]=Surf på nettet
  43. Comment[pl]=Przeglądanie stron WWW
  44. Comment[pt]=Navegue na Internet
  45. Comment[pt_BR]=Navegue na Internet
  46. Comment[ru]=Обозреватель Всемирной Паутины
  47. Comment[sk]=Prehliadanie internetu
  48. Comment[sv]=Surfa på webben
  49. GenericName=Web Browser
  50. GenericName[bg]=Интернет браузър
  51. GenericName[ca]=Navegador web
  52. GenericName[cs]=Webový prohlížeč
  53. GenericName[de]=Webbrowser
  54. GenericName[el]=Περιηγητής ιστού
  55. GenericName[es]=Navegador web
  56. GenericName[fa]=مرورگر اینترنتی
  57. GenericName[fi]=WWW-selain
  58. GenericName[fr]=Navigateur Web
  59. GenericName[hu]=Webböngésző
  60. GenericName[it]=Browser Web
  61. GenericName[ja]=ウェブ・ブラウザ
  62. GenericName[ko]=웹 브라우저
  63. GenericName[nb]=Nettleser
  64. GenericName[nl]=Webbrowser
  65. GenericName[nn]=Nettlesar
  66. GenericName[no]=Nettleser
  67. GenericName[pl]=Przeglądarka WWW
  68. GenericName[pt]=Navegador Web
  69. GenericName[pt_BR]=Navegador Web
  70. GenericName[ru]=Интернет-браузер
  71. GenericName[sk]=Internetový prehliadač
  72. GenericName[sv]=Webbläsare
  73. X-GNOME-FullName=Firefox Web Browser
  74. X-GNOME-FullName[bg]=Интернет браузър (Firefox)
  75. X-GNOME-FullName[ca]=Navegador web Firefox
  76. X-GNOME-FullName[cs]=Firefox Webový prohlížeč
  77. X-GNOME-FullName[el]=Περιηγήτης Ιστού Firefox
  78. X-GNOME-FullName[es]=Navegador web Firefox
  79. X-GNOME-FullName[fa]=مرورگر اینترنتی Firefox
  80. X-GNOME-FullName[fi]=Firefox-selain
  81. X-GNOME-FullName[fr]=Navigateur Web Firefox
  82. X-GNOME-FullName[hu]=Firefox webböngésző
  83. X-GNOME-FullName[it]=Firefox Browser Web
  84. X-GNOME-FullName[ja]=Firefox ウェブ・ブラウザ
  85. X-GNOME-FullName[ko]=Firefox 웹 브라우저
  86. X-GNOME-FullName[nb]=Firefox Nettleser
  87. X-GNOME-FullName[nl]=Firefox webbrowser
  88. X-GNOME-FullName[nn]=Firefox Nettlesar
  89. X-GNOME-FullName[no]=Firefox Nettleser
  90. X-GNOME-FullName[pl]=Przeglądarka WWW Firefox
  91. X-GNOME-FullName[pt]=Firefox Navegador Web
  92. X-GNOME-FullName[pt_BR]=Navegador Web Firefox
  93. X-GNOME-FullName[ru]=Интернет-браузер Firefox
  94. X-GNOME-FullName[sk]=Internetový prehliadač Firefox
  95. X-GNOME-FullName[sv]=Webbläsaren Firefox
  96. Exec=/usr/lib/firefox/firefox %u
  97. Terminal=false
  98. X-MultipleArgs=false
  99. Type=Application
  100. Icon=firefox
  101. Categories=Network;WebBrowser;
  102. 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;
  103. StartupWMClass=Firefox
  104. StartupNotify=true
Copy the Code

Reply Favorite View the author
All Replies
avatar
melodyzou
deepin
2017-11-28 01:25
#1
Firefox Quantum的更新任务已经完成了,在推送列表中,等到下次系统更新推送就行了。
Reply View the author
avatar
duanyao
deepin
2017-11-28 01:57
#2
你是想让自行安装的 Firefox 成为默认浏览器吧?在控制中心的默认程序->浏览器中增加一个 /usr/lib/firefox/firefox %u 即可。
Reply View the author