fix crash due to change in path concatenations
This commit is contained in:
parent
256afe3a5e
commit
d0092847ab
|
@ -49,7 +49,7 @@ namespace SparkleShare {
|
|||
WebClient WebClient = new WebClient ();
|
||||
Uri GravatarUri = new Uri ("http://www.gravatar.com/avatar/" +
|
||||
GetMD5 (Email) + ".jpg?s=" + Size + "&d=404");
|
||||
|
||||
// TODO: Clean paths
|
||||
string TmpFile = SparklePaths.SparkleTmpPath + Email + Size;
|
||||
|
||||
if (!File.Exists (TmpFile)) {
|
||||
|
|
|
@ -23,7 +23,8 @@ namespace SparkleShare {
|
|||
public static class SparklePaths {
|
||||
|
||||
public static string SparkleTmpPath =
|
||||
Path.Combine ("tmp", "sparkleshare");
|
||||
SparkleHelpers.CombineMore (Path.VolumeSeparatorChar.ToString (),
|
||||
"tmp", "sparkleshare");
|
||||
|
||||
private static UnixUserInfo UnixUserInfo =
|
||||
new UnixUserInfo (UnixEnvironment.UserName);
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace SparkleShare {
|
|||
Menu.Add (new SeparatorMenuItem ());
|
||||
|
||||
CheckMenuItem NotifyCheckMenuItem =
|
||||
new CheckMenuItem (_("Show notifications"));
|
||||
new CheckMenuItem (_("Show Notifications"));
|
||||
Menu.Add (NotifyCheckMenuItem);
|
||||
Menu.Add (new SeparatorMenuItem ());
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ namespace SparkleShare {
|
|||
case "GNOME":
|
||||
Process.StartInfo.FileName = "gvfs-set-attribute";
|
||||
Process.StartInfo.Arguments =
|
||||
Folder + " metadata::emblems [synced]";
|
||||
"-t string " + Folder + " metadata::emblems [synced]";
|
||||
Process.Start ();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -226,7 +226,6 @@ namespace SparkleShare {
|
|||
typeof (string),
|
||||
typeof (string));
|
||||
|
||||
|
||||
int i = 0;
|
||||
TreeIter Iter;
|
||||
TreePath TreePath;
|
||||
|
@ -241,14 +240,15 @@ namespace SparkleShare {
|
|||
string UserName = Parts [0];
|
||||
string UserEmail = Parts [1];
|
||||
|
||||
// Do something special if the person is you
|
||||
if (UserEmail.Equals (SparkleRepo.UserEmail))
|
||||
UserEmail = _("That’s you!");
|
||||
|
||||
// Actually add to the list
|
||||
Iter = PeopleStore.Prepend ();
|
||||
PeopleStore.SetValue (Iter, 0,
|
||||
SparkleHelpers.GetAvatar (UserEmail , 32));
|
||||
|
||||
// Do something special if the person is you
|
||||
if (UserEmail.Equals (SparkleRepo.UserEmail))
|
||||
UserEmail = _("That’s you!");
|
||||
|
||||
PeopleStore.SetValue (Iter, 1,
|
||||
"<b>" + UserName + "</b>\n" +
|
||||
"<span font_size=\"smaller\">" +
|
||||
|
|
Loading…
Reference in a new issue