1

I am trying to open a specific file type (not html files or web links) with a Chrome Web App. Through some registry edits, I have managed to set the web app to be the default for the file type, but I am having issues with the open command of the web app. I am trying to open the file in the web app like this:

"C:\Program Files\Google\Chrome\Application\chrome_proxy.exe" --profile-directory=Default --app-id=<app-id> --single-argument %1

However, with this command, when I am double clicking my file, the web app does show up, but it doesn't seem to try to open the file in any way. If I instead drag the file onto the web app when it is already open, the web app does handle the file. Is my command wrong or does the web app lack the code necessary to open files in this way?

Edit: I believe --single-argument is not even a supported option for chrome_proxy.exe since it doesn't seem to matter if it is there or not and chrome_proxy.exe seems to simply disregard any options it does not know such as literally --whatever instead of failing if called with invalid options. I originally thought --single-argument %1 would be useful since this is how the system passes regular html files to chrome.exe.

1 Answers1

1

I don't have a PWA to test on, but this is what I know.

The following setting in Chrome is required to enable a PWA to access files:

  • Run Chrome
  • Open chrome://flags
  • Enter in the Search field "File Handling API". This will also find "File Handling Icons".
  • Set both to Enabled using the drop-down menu
  • Relaunch Chrome.

Try to open a file using the PWA by selecting the PWA in the Windows 10 file manager’s "Open With" menu. You should get a dialog where you will need to allow this access.

harrymc
  • 498,455