Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Chrome apps be set as default editor for a file type?

I'm currently doing some research for a potential personal project which aims to be the default editor of it's own file format. Due to some desired requirements, it's nature and personal preference I'd be implementing as a chrome app and I was wondering whether you can register a Chrome app as the default application for a file type system wide.

Registering it as available editor in Google Drive and other cloud storage solutions that allow it is nice and I can use an 'open file' dialog for getting user's local documents available for the app but a tighter, more traditional integration would be preferable.

like image 907
Néstor Hernández Ojeda Avatar asked Mar 13 '13 10:03

Néstor Hernández Ojeda


People also ask

How do I change what program opens a file 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 change the default app to open files on Chromebook?

Setting Default Apps on a ChromebookOpen the Files app and go to the file whose default app you would like to change. Click on the file to select it. On the top right-hand side of the navigation bar, you'll see an option that reads “Open.”

How do I associate a file type with an Android app?

Open File Manager and browse the the folder containing the files that you want to associate with a particular app. This will set the target file types to be opened with the selected app and open that file in that app as well. By the way doing things in Android is not too difficult.


1 Answers

This is possible at the moment on ChromeOS. There are bugs to log this on other operating systems, the first of which will be Windows.

To support this there are manifest entries for declaring your app can handle files, but these are not yet documented (we need to fix that).

Relevant bugs:

File handler registration on Windows: https://code.google.com/p/chromium/issues/detail?id=130455

Documentation: https://code.google.com/p/chromium/issues/detail?id=192536

like image 169
Ben Wells Avatar answered Oct 06 '22 14:10

Ben Wells