Exemplo n.º 1
0
        private void BtnFirefox_Clicked(object?sender, EventArgs e)
        {
            try
            {
                NativeMessagingConfigurer.InstallNativeMessagingHost(Browser.Firefox);
            }
            catch (Exception ex)
            {
                Log.Debug(ex, "Error installing native host");
                GtkHelper.ShowMessageBox(this, TextResource.GetText("MSG_NATIVE_HOST_FAILED"));
                return;
            }

            try
            {
                BrowserLauncher.LaunchFirefox(Links.FirefoxExtensionUrl);
            }
            catch (Exception ex)
            {
                Log.Debug(ex, "Error launching Firefox");
                GtkHelper.ShowMessageBox(this, $"{TextResource.GetText("MSG_BROWSER_LAUNCH_FAILED")} Firefox");
            }
        }