Content-Type Fixer 的评价
Content-Type Fixer 作者: jscher2000
qwerty 的评价
评分 5 / 5
来自 qwerty,5 年前Very nice add-on! I created and installed a desktop java application called xyzapp.exe, and associated it in the OS with custom file extension .xyzapp. I used Content-Type Fixer to define content type application/x-xyzapp, and used the Firefox options to configure Firefox to open (rather than download) .xyzapp files with my xyzapp application. However, they get automatically downloaded anyways. If I tell Firefox to open .xyzapp files with any other app (e.g. Notepad), it works fine. Is this a content-type issue, or does Firefox not permit the launch of privately-developed apps?
开发者回应
发布于 5 年前Hi qwerty, I thought the same way you set up Notepad to open a new content-type should work for any application. Firefox would normally save the file in the TEMP folder and launch it using the Windows shell by passing the path to the file to your app. Does that work on the command line:
C:\path\to\xyzapp.exe %TEMP%\myfile.xyzapp
C:\path\to\xyzapp.exe %TEMP%\myfile.xyzapp