Remove temporary files on startup instead of exit
This commit is contained in:
parent
5959f1db5f
commit
6afd2a15dc
|
@ -88,6 +88,10 @@ namespace SparkleShare {
|
||||||
public SparkleController ()
|
public SparkleController ()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Remove temporary file
|
||||||
|
if (Directory.Exists (SparklePaths.SparkleTmpPath))
|
||||||
|
Directory.Delete (SparklePaths.SparkleTmpPath, true);
|
||||||
|
|
||||||
InstallLauncher ();
|
InstallLauncher ();
|
||||||
EnableSystemAutostart ();
|
EnableSystemAutostart ();
|
||||||
|
|
||||||
|
@ -1264,9 +1268,6 @@ namespace SparkleShare {
|
||||||
// foreach (SparkleRepo repo in Repositories)
|
// foreach (SparkleRepo repo in Repositories)
|
||||||
// repo.Dispose ();
|
// repo.Dispose ();
|
||||||
|
|
||||||
if (Directory.Exists (SparklePaths.SparkleTmpPath))
|
|
||||||
Directory.Delete (SparklePaths.SparkleTmpPath, true);
|
|
||||||
|
|
||||||
// FIXME: Never exits
|
// FIXME: Never exits
|
||||||
Environment.Exit (0);
|
Environment.Exit (0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue