make sure to quote folder name
This commit is contained in:
parent
a859641089
commit
49876ee61f
|
@ -92,22 +92,22 @@ namespace SparkleShare {
|
||||||
SparkleRepo [] TmpRepos =
|
SparkleRepo [] TmpRepos =
|
||||||
new SparkleRepo [Directory.GetDirectories (SparklePath).Length];
|
new SparkleRepo [Directory.GetDirectories (SparklePath).Length];
|
||||||
|
|
||||||
int i = 0;
|
int FolderCount = 0;
|
||||||
foreach (string Folder in Directory.GetDirectories (SparklePath)) {
|
foreach (string Folder in Directory.GetDirectories (SparklePath)) {
|
||||||
|
|
||||||
// Check if the folder is a git repo
|
// Check if the folder is a git repo
|
||||||
if (Directory.Exists (SparkleHelpers.CombineMore (Folder,
|
if (Directory.Exists (SparkleHelpers.CombineMore (Folder,
|
||||||
".git"))) {
|
".git"))) {
|
||||||
TmpRepos [i] = new SparkleRepo (Folder);
|
TmpRepos [FolderCount] = new SparkleRepo (Folder);
|
||||||
i++;
|
FolderCount++;
|
||||||
|
|
||||||
// Attach emblems
|
|
||||||
// TODO: emblems don't work in nautilus
|
// TODO: emblems don't work in nautilus
|
||||||
|
// Attach emblems
|
||||||
switch (SparklePlatform.Name) {
|
switch (SparklePlatform.Name) {
|
||||||
case "GNOME":
|
case "GNOME":
|
||||||
Process.StartInfo.FileName = "gvfs-set-attribute";
|
Process.StartInfo.FileName = "gvfs-set-attribute";
|
||||||
Process.StartInfo.Arguments =
|
Process.StartInfo.Arguments =
|
||||||
"-t string " + Folder + " metadata::emblems [synced]";
|
"-t string \"" + Folder + "\" metadata::emblems [synced]";
|
||||||
Process.Start ();
|
Process.Start ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -116,8 +116,8 @@ namespace SparkleShare {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SparkleShare.Repositories = new SparkleRepo [i];
|
SparkleShare.Repositories = new SparkleRepo [FolderCount];
|
||||||
Array.Copy (TmpRepos, SparkleShare.Repositories, i);
|
Array.Copy (TmpRepos, SparkleShare.Repositories, FolderCount);
|
||||||
|
|
||||||
// Don't create the window and status
|
// Don't create the window and status
|
||||||
// icon when --disable-gui was given
|
// icon when --disable-gui was given
|
||||||
|
|
|
@ -77,18 +77,22 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateEventLog () {
|
public void UpdateEventLog () {
|
||||||
|
|
||||||
LayoutHorizontal.Remove (LogScrolledWindow);
|
LayoutHorizontal.Remove (LogScrolledWindow);
|
||||||
LogScrolledWindow = CreateEventLog ();
|
LogScrolledWindow = CreateEventLog ();
|
||||||
LayoutHorizontal.PackStart (LogScrolledWindow, true, true, 0);
|
LayoutHorizontal.PackStart (LogScrolledWindow, true, true, 0);
|
||||||
ShowAll ();
|
ShowAll ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdatePeopleList () {
|
public void UpdatePeopleList () {
|
||||||
|
|
||||||
LayoutHorizontal.Remove (PeopleScrolledWindow);
|
LayoutHorizontal.Remove (PeopleScrolledWindow);
|
||||||
PeopleScrolledWindow = CreatePeopleList ();
|
PeopleScrolledWindow = CreatePeopleList ();
|
||||||
LayoutHorizontal.PackStart (PeopleScrolledWindow, false, false, 0);
|
LayoutHorizontal.PackStart (PeopleScrolledWindow, false, false, 0);
|
||||||
LayoutHorizontal.ReorderChild (PeopleScrolledWindow, 0);
|
LayoutHorizontal.ReorderChild (PeopleScrolledWindow, 0);
|
||||||
ShowAll ();
|
ShowAll ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ScrolledWindow CreateEventLog () {
|
public ScrolledWindow CreateEventLog () {
|
||||||
|
|
Loading…
Reference in a new issue