File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1
1
<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion =" 12.0" >
2
2
<!-- Adds to the DefineConstants to provide things such as platform-specific defines. -->
3
+ <PropertyGroup >
4
+ <OS Condition =" '$(OS)' == ''" >Windows_NT</OS >
5
+ </PropertyGroup >
6
+ <Choose >
7
+ <When Condition =" '$(OS)' != 'Unix'" >
8
+ <PropertyGroup >
9
+ <ActualOS >Windows</ActualOS >
10
+ </PropertyGroup >
11
+ </When >
12
+ <!-- Folders that *probably* only exist on MacOS and not Linux. -->
13
+ <When Condition =" Exists('/Volumes') And Exists('/System') And Exists('/Library')" >
14
+ <PropertyGroup >
15
+ <ActualOS >MacOS</ActualOS >
16
+ </PropertyGroup >
17
+ </When >
18
+ <When Condition =" $([MSBuild]::IsOSPlatform('FreeBSD'))" >
19
+ <PropertyGroup >
20
+ <ActualOS >FreeBSD</ActualOS >
21
+ </PropertyGroup >
22
+ </When >
23
+ <Otherwise >
24
+ <PropertyGroup >
25
+ <ActualOS >Linux</ActualOS >
26
+ </PropertyGroup >
27
+ </Otherwise >
28
+ </Choose >
29
+ <PropertyGroup >
30
+ <TargetOS Condition =" '$(TargetOS)' == ''" >$(ActualOS)</TargetOS >
31
+ </PropertyGroup >
3
32
<Choose >
4
33
<When Condition =" '$(TargetOS)' == 'Windows'" >
5
34
<PropertyGroup >
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ private void RegisterProtocol()
108
108
Log . Information ( "Registering SS14 protocol handler for Windows" ) ;
109
109
foreach ( var protocol in protocols )
110
110
{
111
- var key = Registry . ClassesRoot . CreateSubKey ( protocol ) ;
111
+ var key = Registry . CurrentUser . CreateSubKey ( $@ "SOFTWARE\Classes\ { protocol } " ) ;
112
112
key . SetValue ( string . Empty , $ "URL: { protocol } ") ;
113
113
key . SetValue ( "URL Protocol" , string . Empty ) ;
114
114
You can’t perform that action at this time.
0 commit comments