Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the checkbox "Allow access to file URLs" to show up next to my app? I have file write permissions in manifest

More Info/Update

I packaged and installed google's own sample app showing filesystem access and it also does not show the checkbox!

You can find it here: https://github.com/GoogleChrome/chrome-app-samples/tree/master/filesystem-access

Original Post

I have the permission asking for filesystem.write ability in my manifest but on the chrome://extensions page, the check box doesn't show up. And when I click "permissions" next to my app's icon, it only shows:

"Write to files that you have opened in the application"

What am I doing wrong? (This is a hosted app)

manifest.json

{
    "manifest_version": 2,
    "name": "Hello World",
    "description": "A test application",
    "version": "2.0.3.92",
    "minimum_chrome_version": "23",
    "offline_enabled": true,
    "update_url": "http://mywebsite.com/updates/helloworld.xml",
    "icons": 
    {
        "16": "icon_16.png",
        "128": "icon_128.png"
    },
    "app": 
    {
        "background": 
        {
            "scripts": 
            [
                "utils.js",
                "fs.js",
                "main.js"
            ]
        }
    },
    "permissions": 
    [
        "unlimitedStorage",
        "fullscreen",
        {
            "fileSystem": 
            [
                "write"
            ]
        },
        "background",
        "http://*/",
        "tabs"
    ]
}
like image 823
Don Rhummy Avatar asked Jun 19 '13 00:06

Don Rhummy


People also ask

How do I allow access to URLs?

If you open a Chrome browser window and navigate to chrome://extensions, you may notice the option "Allow access to file URLs" underneath of the LastPass extension. This option is mostly for web developers. Checking this option allows LastPass to login and fill forms for local files such as file:///C:/dev/test.html.


1 Answers

To get this to work you need either:

permissions: [ "<all_urls>" ]

or a scheme starting with file:///.

If you try *://*/* that will not work as it only represents http or https

like image 179
Don Rhummy Avatar answered Nov 15 '22 01:11

Don Rhummy