controller: Write OS and SparkleShare version to debug log on start
This commit is contained in:
parent
1cc3698f05
commit
34e02c786b
|
@ -77,7 +77,7 @@ namespace SparkleLib {
|
||||||
"Remove any sensitive information like file names, IP addresses, domain names, etc. if needed." + n + n +
|
"Remove any sensitive information like file names, IP addresses, domain names, etc. if needed." + n + n +
|
||||||
"------" + n + n +
|
"------" + n + n +
|
||||||
"SparkleShare version: " + SparkleLib.SparkleBackend.Version + 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;
|
crash_report += e.GetType () + ": " + e.Message + n + e.StackTrace + n;
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public SparkleControllerBase ()
|
public SparkleControllerBase ()
|
||||||
{
|
{
|
||||||
|
|
||||||
string app_data_path = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
|
string app_data_path = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
|
||||||
string config_path = Path.Combine (app_data_path, "sparkleshare");
|
string config_path = Path.Combine (app_data_path, "sparkleshare");
|
||||||
|
|
||||||
|
@ -172,11 +173,13 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public virtual void Initialize ()
|
public virtual void Initialize ()
|
||||||
{
|
{
|
||||||
|
SparkleLogger.LogInfo ("Environment", "SparkleShare version: " + SparkleLib.SparkleBackend.Version +
|
||||||
|
", Operating system: " + SparkleLib.SparkleBackend.Platform + " (" + Environment.OSVersion + ")");
|
||||||
|
|
||||||
SparklePlugin.PluginsPath = PluginsPath;
|
SparklePlugin.PluginsPath = PluginsPath;
|
||||||
InstallProtocolHandler ();
|
InstallProtocolHandler ();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Create the SparkleShare folder and add it to the bookmarks
|
|
||||||
if (CreateSparkleShareFolder ())
|
if (CreateSparkleShareFolder ())
|
||||||
AddToBookmarks ();
|
AddToBookmarks ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue