-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump SCR * Changes to exception handling and topmost setting. * Misc tweaks around logging and unhandled exceptions: - Create larger log files when in audit mode - Send more log files each collection by default - Unset and reset TopMost when the client information window is shown - Attempt to restart on unhandled exception * Implement Watchdog start xibosignage/xibo#789 Also Standardise icons across forms. * Safer copy/write/move on use app settings * Build step for SCR. Watchdog quote args. * Disable windows error reporting on start. * Fix for mac address formatting xibosignage/xibo#785 * Fix a race condition between the library and log agents. * Fix watchdog/player start race condition that triggered activity check * Better error messages for file locks and recovery for a lock event during layout load xibosignage/xibo#796 * Fix for using pattern around File.Open xibosignage/xibo#796 * Setting to prevent sleep Bump versions. xibosignage/xibo#794 * Fix issue with watchdog starting during screensaver (prevented sleeping).
- Loading branch information
Showing
30 changed files
with
314 additions
and
2,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Windows.Forms; | ||
|
||
namespace XiboClient.Control | ||
{ | ||
class WatchDogManager | ||
{ | ||
public static void Start() | ||
{ | ||
// Check to see if the WatchDog EXE exists where we expect it to be | ||
string path = Path.GetDirectoryName(Application.ExecutablePath) + @"\watchdog\x86\XiboClientWatchdog.exe"; | ||
string args = "-p \"" + Application.ExecutablePath + "\" -l \"" + ApplicationSettings.Default.LibraryPath + "\""; | ||
|
||
// Start it | ||
if (File.Exists(path)) | ||
{ | ||
try | ||
{ | ||
Process.Start(path, args); | ||
} | ||
catch (Exception e) | ||
{ | ||
Trace.WriteLine(new LogMessage("WatchDogManager - Start", "Unable to start: " + e.Message), LogType.Error.ToString()); | ||
} | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.