mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-19 06:47:41 +00:00
feat(windows): oops checkin in new system-main-pas
This commit is contained in:
parent
4211820c05
commit
e7776b74a7
1 changed files with 56 additions and 0 deletions
|
|
@ -0,0 +1,56 @@
|
|||
unit Keyman.Configuration.System.Main;
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
comobj,
|
||||
Forms,
|
||||
SysUtils,
|
||||
ActiveX,
|
||||
|
||||
Keyman.System.CEFManager,
|
||||
|
||||
Keyman.System.KeymanSentryClient,
|
||||
Sentry.Client,
|
||||
Sentry.Client.Vcl,
|
||||
Keyman.Configuration.System.UmodWebHttpServer,
|
||||
initprog;
|
||||
|
||||
procedure RunKeymanConfiguration;
|
||||
|
||||
implementation
|
||||
|
||||
const
|
||||
LOGGER_DESKTOP_KMSHELL = TKeymanSentryClient.LOGGER_DESKTOP + '.kmshell';
|
||||
|
||||
procedure RunKeymanConfiguration;
|
||||
begin
|
||||
TKeymanSentryClient.Start(TSentryClientVcl, kscpDesktop, LOGGER_DESKTOP_KMSHELL, LoadKeymanDesktopSentryFlags);
|
||||
try
|
||||
CoInitFlags := COINIT_APARTMENTTHREADED;
|
||||
FInitializeCEF := TCEFManager.Create;
|
||||
try
|
||||
if FInitializeCEF.Start then
|
||||
try
|
||||
Application.Initialize;
|
||||
Application.Title := 'Keyman Configuration';
|
||||
Application.CreateForm(TmodWebHttpServer, modWebHttpServer);
|
||||
try
|
||||
Run;
|
||||
finally
|
||||
FreeAndNil(modWebHttpServer);
|
||||
end;
|
||||
except
|
||||
on E:Exception do
|
||||
SentryHandleException(E);
|
||||
end;
|
||||
finally
|
||||
FInitializeCEF.Free;
|
||||
end;
|
||||
finally
|
||||
TKeymanSentryClient.Stop;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
end.
|
||||
Loading…
Add table
Reference in a new issue