Skip to content

Commit

Permalink
Example - Make BrowserSubProcess paths absolute
Browse files Browse the repository at this point in the history
Issue #3102
  • Loading branch information
amaitland committed Apr 28, 2020
1 parent 924e7bd commit 4d7fa50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CefSharp.Example/CefExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using CefSharp.Example.Properties;
using CefSharp.Example.Proxy;
Expand Down Expand Up @@ -152,7 +153,7 @@ public static void Init(CefSettingsBase settings, IBrowserProcessHandler browser
if (DebuggingSubProcess)
{
var architecture = Environment.Is64BitProcess ? "x64" : "x86";
settings.BrowserSubprocessPath = "..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe";
settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe");
}

settings.RegisterScheme(new CefCustomScheme
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.WinForms.Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static int Main(string[] args)
#endif

var settings = new CefSettings();
settings.BrowserSubprocessPath = "CefSharp.WinForms.Example.exe";
settings.BrowserSubprocessPath = System.IO.Path.GetFullPath("CefSharp.WinForms.Example.exe");

Cef.Initialize(settings);

Expand Down

0 comments on commit 4d7fa50

Please sign in to comment.