Handling Mimetype with the chrome extension (packaged applications)

I am wondering if a file with a given mimetype type can be processed by a packaged application.

I saw that in the manifest file, nacl_modules can be used to associate your own client module with the mimetype type.

I need my packaged application to process desktop files with a specific mimetype type.

Since a packaged application can be launched and run without displaying Chrome, this seems possible, but the question is how!

Thank you for your advice and comments.

Guy

0
source share
1 answer

You can process files using this section of the manifest: http://developer.chrome.com/trunk/apps/manifest.html#file_handlers

"file_handlers": { "testhandler": { "title": "TestHandler", "types": ["*/*"] } }, "permissions": ["fileSystem"], 

Then the selected file will be passed in the startData parameter of the onLaunched handler.

Please note that this is not yet available when starting from the file manager on platforms other than ChromeOS. On these platforms, it will work only now if you run the application from the command line with file names as parameters ( http://developer.chrome.com/trunk/apps/first_app.html#open )

0
source

All Articles