linux controller: Don't complain if autostart file exists

This commit is contained in:
Hylke Bons 2016-04-08 20:16:27 +01:00
parent 4617b2fdc8
commit 02209337b2
2 changed files with 3 additions and 0 deletions

View file

@ -64,6 +64,9 @@ namespace SparkleShare {
if (!Directory.Exists (autostart_path))
Directory.CreateDirectory (autostart_path);
if (File.Exists (autostart_file_dest))
return;
try {
File.Copy (autostart_file_path, autostart_file_dest);
Logger.LogInfo ("Controller", "Added SparkleShare to startup items");