![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
Recognization of nxm://URI
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
Được chỉnh sửa bởi Jacob Hrbek vào
Giải pháp được chọn
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.
Đọc câu trả lời này trong ngữ cảnh 👍 1Tất cả các câu trả lời (3)
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)
Được chỉnh sửa bởi cor-el vào
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
Giải pháp được chọn
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.