为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Recognization of nxm://URI

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

i'm trying to set network.protocol-handler.app.nxm in about:config with value /bin/bash -c "env WINEPREFIX='/home/kreyren/.local/share/vortex' wine /home/kreyren/.local/share/vortex/drive_c/Program\ Files/Black\ Tree\ Gaming\ Ltd/Vortex/Vortex.exe -d" which is not recognized by firefox.

EXPECTED

Expected if nxm://URI is searched in firefox -> Invoke /bin/bash -c "env WINEPREFIX='/home/kreyren/.local/share/vortex' wine /home/kreyren/.local/share/vortex/drive_c/Program\ Files/Black\ Tree\ Gaming\ Ltd/Vortex/Vortex.exe -d nxm://URI

SYSTEM INFO

system info: https://i.imgur.com/VsiWwzW.png

using www-client/firefox-66.0-r1 from gentoo (https://i.imgur.com/yBzsHyc.png).

if' network.protocol-handler.expose.nxm=true is set in about:config the browser won't prompt for association (based on freenode #firefox)

ADDITIONAL INFO

Command above works if invoked in terminal.

Current usecase is expected to parse instructions to Vortex mod manager which is running using wine and install https://www.nexusmods.com/witcher2/mods/89 into the witcher 2 game via vortex button on the provided website.

If invoked from anonymous tab it just search it in google.com

based on https://github.com/TanninOne/modorganizer/issues/463 tried to make xdg-mime default nxmhandler.desktop x-scheme-handler/nxm which didn't work either.

SOLUTION

Unknown

i'm trying to set '''<code>network.protocol-handler.app.nxm</code>''' in '''<code>about:config</code>''' with value '''<code>/bin/bash -c "env WINEPREFIX='/home/kreyren/.local/share/vortex' wine /home/kreyren/.local/share/vortex/drive_c/Program\ Files/Black\ Tree\ Gaming\ Ltd/Vortex/Vortex.exe -d"</code>''' which is not recognized by firefox. == EXPECTED == Expected if '''<code>nxm://URI</code>''' is searched in firefox -> Invoke '''<code>/bin/bash -c "env WINEPREFIX='/home/kreyren/.local/share/vortex' wine /home/kreyren/.local/share/vortex/drive_c/Program\ Files/Black\ Tree\ Gaming\ Ltd/Vortex/Vortex.exe -d nxm://URI</code>''' == SYSTEM INFO == system info: https://i.imgur.com/VsiWwzW.png using '''<code>www-client/firefox-66.0-r1</code>''' from gentoo (https://i.imgur.com/yBzsHyc.png). if' '''<code>network.protocol-handler.expose.nxm=true</code>''' is set in '''<code>about:config</code>''' the browser won't prompt for association (based on freenode #firefox) == ADDITIONAL INFO == Command above works if invoked in terminal. Current usecase is expected to parse instructions to Vortex mod manager which is running using wine and install https://www.nexusmods.com/witcher2/mods/89 into the witcher 2 game via vortex button on the provided website. If invoked from anonymous tab it just search it in google.com based on https://github.com/TanninOne/modorganizer/issues/463 tried to make '''<code>xdg-mime default nxmhandler.desktop x-scheme-handler/nxm</code>''' which didn't work either. == SOLUTION == Unknown

由Jacob Hrbek于修改

被采纳的解决方案

Try to remove the other prefs that show in the screenshot (especially the app pref) and only leave the expose pref with value false. You can also check the handlers.json file in the profile folder.

定位到答案原位置 👍 1

所有回复 (3)

more options

You need these pref setting to make Firefox prompt for the application. You would have to use a bash script to be able to use a Wine application.

  • network.protocol-handler.expose.<protocol> = false (not be opened in Fx)
  • network.protocol-handler.external.<protocol> = true (allow external app)

由cor-el于修改

more options

cor-el said

You need these pref setting to make Firefox prompt for the application. You would have to use a bash script to be able to use a Wine application.
  • network.protocol-handler.expose.<protocol> = false (not be opened in Fx)
  • network.protocol-handler.external.<protocol> = true (allow external app)

doesn't work, i suspect it's caused by other options in about:config, how do i remove them? There is not option afaik

or it's bug

https://i.imgur.com/7wL3kxZ.png

more options

选择的解决方案

Try to remove the other prefs that show in the screenshot (especially the app pref) and only leave the expose pref with value false. You can also check the handlers.json file in the profile folder.