Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Associate file type with Chrome Packaged App

Is there any way to associate some file types in you OS to Chrome Packaged App. I mean if you open file with *.some extension, it would open with my packaged app

like image 358
Taron Mehrabyan Avatar asked Mar 25 '14 11:03

Taron Mehrabyan


People also ask

How do I associate file types in Chrome?

Highlight the icon for a file with the extension you want to re-associate and press "Command-I" on your keyboard. In the "Get Info" window, expand the "Open With" section and select a new application to use as the default for launching these types of files. Exit the window to save your changes.

How do I associate file types with applications?

Open the Control Panel. In the Control Panel, click the Default Programs option. Click the Associate a file type or protocol with a program option. In the Default apps window, scroll to the bottom and select Choose defaults by file type.

How do I change my Chrome extension ID?

Once uploaded to the Chrome Web Store, your extension ID is fixed and cannot be changed any more. The ID is derived from the . pem file that was created the first time you (or the Chrome Web Store) packed the extension in a .


1 Answers

There is, but it is currently only supported on ChromeOS. We have plans to bring this feature to Windows, Mac and Linux in the near future.

To create an association, use the file_handlers attribute of the Chrome app manifest. For example, to make *.some files open with your packaged app:

"file_handlers": {
  "handler_name": {  # Can be anything
    "extensions": [
      "some"
    ],
    "title": "My application"  # Make this the same as your app title
  }
}

This will create a file association in ChromeOS. When we roll out support on other platforms, it will automatically create the file associations there and you won't have to make any changes.

like image 66
mgiuca Avatar answered Sep 20 '22 11:09

mgiuca