Skip to content

Commit

Permalink
Fixed readme name/patch, added guesswork to open readme on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
GregRos committed Jan 6, 2016
1 parent a5b638c commit 426e488
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions PatchworkLauncher/GUI/LaunchManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ public void Command_Open_Readme() {
Process proc = null;
try {
proc = Process.Start(_pathReadme);
if (proc == null) {
proc = Process.Start("gedit", $"\"{_pathReadme}\"");
}
if (proc == null) {
proc = Process.Start("kate", $"\"{_pathReadme}\"");
}
}
catch (Exception ex) {
lastEx = ex;
Expand Down
2 changes: 1 addition & 1 deletion PatchworkLauncher/PatchworkLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
<Content Include="preferences.pw.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Readme.txt">
<Content Include="readme.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion PatchworkLauncher/preferences.pw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<Preferences xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AlwaysPatch>true</AlwaysPatch>
<DontCopyFiles>true</DontCopyFiles>
<OpenLogAfterPatch>true</OpenLogAfterPatch>
<OpenLogAfterPatch>false</OpenLogAfterPatch>
<MinimumEventLevel>Information</MinimumEventLevel>
</Preferences>
File renamed without changes.

0 comments on commit 426e488

Please sign in to comment.