mac: Fix build
This commit is contained in:
parent
0e2a31c2cd
commit
babf24e713
|
@ -82,7 +82,6 @@ namespace SparkleShare {
|
||||||
Directory.CreateDirectory (SparkleConfig.DefaultConfig.FoldersPath);
|
Directory.CreateDirectory (SparkleConfig.DefaultConfig.FoldersPath);
|
||||||
Syscall.chmod (SparkleConfig.DefaultConfig.FoldersPath, (FilePermissions) 448); // 448 -> 700
|
Syscall.chmod (SparkleConfig.DefaultConfig.FoldersPath, (FilePermissions) 448); // 448 -> 700
|
||||||
|
|
||||||
SparkleLogger.LogInfo ("Controller", "Created '" + SparkleConfig.DefaultConfig.FoldersPath + "'");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,17 @@ namespace SparkleShare {
|
||||||
{
|
{
|
||||||
if (!Directory.Exists (Program.Controller.FoldersPath)) {
|
if (!Directory.Exists (Program.Controller.FoldersPath)) {
|
||||||
Directory.CreateDirectory (Program.Controller.FoldersPath);
|
Directory.CreateDirectory (Program.Controller.FoldersPath);
|
||||||
|
Syscall.chmod (Program.Controller.FoldersPath, (FilePermissions) 448); // 448 -> 700
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public override void SetFolderIcon ()
|
||||||
|
{
|
||||||
if (Environment.OSVersion.Version.Major >= 14) {
|
if (Environment.OSVersion.Version.Major >= 14) {
|
||||||
NSWorkspace.SharedWorkspace.SetIconforFile (
|
NSWorkspace.SharedWorkspace.SetIconforFile (
|
||||||
NSImage.ImageNamed ("sparkleshare-folder-yosemite.icns"),
|
NSImage.ImageNamed ("sparkleshare-folder-yosemite.icns"),
|
||||||
|
@ -139,13 +149,6 @@ namespace SparkleShare {
|
||||||
NSImage.ImageNamed ("sparkleshare-folder.icns"),
|
NSImage.ImageNamed ("sparkleshare-folder.icns"),
|
||||||
Program.Controller.FoldersPath, 0);
|
Program.Controller.FoldersPath, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Syscall.chmod (Program.Controller.FoldersPath, (FilePermissions) 448); // 448 -> 700
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue