linux controller: Don't complain if autostart file exists
This commit is contained in:
parent
4617b2fdc8
commit
02209337b2
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue