Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows example for install path in Extension policy #267

Closed
cadeyrn opened this issue Oct 11, 2018 · 1 comment
Closed

Windows example for install path in Extension policy #267

cadeyrn opened this issue Oct 11, 2018 · 1 comment

Comments

@cadeyrn
Copy link

cadeyrn commented Oct 11, 2018

Could you please expand the documentation for the Extension policy?
https://github.com/mozilla/policy-templates#extensions-machine-only

I am interested in an example of what the install path should look like on Windows. Usually a Windows path looks like:

C:\Program Files\Mozilla Firefox\distribution\extension.xpi

I know that backslashes has to be escaped in JSON so I expected the following as valid path:

C:\\Program Files\\Mozilla Firefox\\distribution\\extension.xpi

A user of my Enterprise Policy Generator add-on has reported that this does not work. He said that four (!) backslashes are necessary:

C:\\\\Program Files\\\\Mozilla Firefox\\\\distribution\\\\extension.xpi

I don't have a Windows system so I can't verify this. It would be great if the correct way to write Windows pathes in policies.json could be clarified in the documentation because I guess it's a common source of errors.

Thank you.

@mkaply
Copy link
Collaborator

mkaply commented Oct 11, 2018

Double backslashes work fine for me on Windows. There should be no reason to have four backslashes.

@mkaply mkaply closed this as completed Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants