Skip to content

Commit c4f3ae6

Browse files
Ejsstiildg
authored andcommitted
tools: open-in-editor uses AutoLaunchProtocolsFromOrigins to suppress browser prompt [Closes #573]
1 parent 1dc79b1 commit c4f3ae6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/open-in-editor/windows/install.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ if defined PROCESSOR_ARCHITEW6432 (set reg="%systemroot%\sysnative\reg.exe") els
66
%reg% ADD HKCR\editor /ve /d "URL:editor Protocol" /f
77
%reg% ADD HKCR\editor /v "URL Protocol" /d "" /f
88
%reg% ADD HKCR\editor\shell\open\command /ve /d "wscript \"%~dp0open-editor.js\" \"%%1\"" /f
9-
%reg% ADD HKLM\SOFTWARE\Policies\Google\Chrome\URLWhitelist /v "123" /d "editor://*" /f
9+
%reg% ADD HKLM\SOFTWARE\Policies\Google\Chrome /v "AutoLaunchProtocolsFromOrigins" /d "[{\"allowed_origins\": [\"*\"],\"protocol\": \"editor\"}]" /t REG_SZ /f
10+
:: Vivaldi (uncomment if needed)
11+
:: %reg% ADD HKLM\SOFTWARE\Policies\Vivaldi /v "AutoLaunchProtocolsFromOrigins" /d "[{\"allowed_origins\": [\"*\"],\"protocol\": \"editor\"}]" /t REG_SZ /f

0 commit comments

Comments
 (0)