SEBWIN-312: Ensured applications which are allowed to be running are not automatically terminated.
This commit is contained in:
parent
3626fbe74f
commit
a18a404ed6
4 changed files with 2 additions and 13 deletions
|
@ -94,7 +94,7 @@ namespace SafeExamBrowser.Applications
|
||||||
|
|
||||||
lock (@lock)
|
lock (@lock)
|
||||||
{
|
{
|
||||||
if (instances.Any())
|
if (instances.Any() && !settings.AllowRunning)
|
||||||
{
|
{
|
||||||
logger.Info("Terminating application...");
|
logger.Info("Terminating application...");
|
||||||
|
|
||||||
|
|
|
@ -127,11 +127,6 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
|
||||||
application.OriginalName = originalName;
|
application.OriginalName = originalName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (applicationData.TryGetValue(Keys.Applications.RendererName, out v) && v is string rendererName)
|
|
||||||
{
|
|
||||||
application.RendererName = rendererName;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (applicationData.TryGetValue(Keys.Applications.ShowInShell, out v) && v is bool showInShell)
|
if (applicationData.TryGetValue(Keys.Applications.ShowInShell, out v) && v is bool showInShell)
|
||||||
{
|
{
|
||||||
application.ShowInShell = showInShell;
|
application.ShowInShell = showInShell;
|
||||||
|
|
|
@ -32,7 +32,6 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
|
||||||
internal const string ExecutablePath = "path";
|
internal const string ExecutablePath = "path";
|
||||||
internal const string OperatingSystem = "os";
|
internal const string OperatingSystem = "os";
|
||||||
internal const string OriginalName = "originalName";
|
internal const string OriginalName = "originalName";
|
||||||
internal const string RendererName = "windowHandlingProcess";
|
|
||||||
internal const string ShowInShell = "iconInTaskbar";
|
internal const string ShowInShell = "iconInTaskbar";
|
||||||
internal const string Whitelist = "permittedProcesses";
|
internal const string Whitelist = "permittedProcesses";
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace SafeExamBrowser.Settings.Applications
|
||||||
public string DisplayName { get; set; }
|
public string DisplayName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The name of the main executable of the application.
|
/// The file name of the main executable of the application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ExecutableName { get; set; }
|
public string ExecutableName { get; set; }
|
||||||
|
|
||||||
|
@ -72,11 +72,6 @@ namespace SafeExamBrowser.Settings.Applications
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string OriginalName { get; set; }
|
public string OriginalName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The name of the executable responsible for rendering the user interface.
|
|
||||||
/// </summary>
|
|
||||||
public string RendererName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether the user will be able to access the application via the shell.
|
/// Determines whether the user will be able to access the application via the shell.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue