controller: Write OS and SparkleShare version to debug log on start

This commit is contained in:
Hylke Bons 2013-08-26 21:51:46 +02:00
parent d5815a90b5
commit ca7e8b7786
2 changed files with 5 additions and 2 deletions

View file

@ -77,7 +77,7 @@ namespace SparkleLib {
"Remove any sensitive information like file names, IP addresses, domain names, etc. if needed." + n + n +
"------" + n + n +
"SparkleShare version: " + SparkleLib.SparkleBackend.Version + n +
"Operating system: " + SparkleLib.SparkleBackend.Platform + " " + Environment.OSVersion + n;
"Operating system: " + SparkleLib.SparkleBackend.Platform + " (" + Environment.OSVersion + ")" + n;
crash_report += e.GetType () + ": " + e.Message + n + e.StackTrace + n;

View file

@ -161,6 +161,7 @@ namespace SparkleShare {
public SparkleControllerBase ()
{
string app_data_path = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
string config_path = Path.Combine (app_data_path, "sparkleshare");
@ -172,11 +173,13 @@ namespace SparkleShare {
public virtual void Initialize ()
{
SparkleLogger.LogInfo ("Environment", "SparkleShare version: " + SparkleLib.SparkleBackend.Version +
", Operating system: " + SparkleLib.SparkleBackend.Platform + " (" + Environment.OSVersion + ")");
SparklePlugin.PluginsPath = PluginsPath;
InstallProtocolHandler ();
try {
// Create the SparkleShare folder and add it to the bookmarks
if (CreateSparkleShareFolder ())
AddToBookmarks ();