code cleanup

This commit is contained in:
Hylke Bons 2010-06-01 17:20:53 +02:00
parent 0dd6e4b537
commit 17b8f53293

View file

@ -46,14 +46,14 @@ namespace SparkleShare {
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 = SparklePath + Process.StartInfo.Arguments =
" metadata::custom-icon " + SparklePath + " metadata::custom-icon " +
"file:///usr/share/icons/hicolor/" + "file:///usr/share/icons/hicolor/48x48/places/" +
"48x48/places/" + "folder-sparkleshare.png";
"folder-sparkleshare.png"; Process.Start ();
break; break;
} }
Process.Start ();
// Add the SparkleShare folder to the bookmarks // Add the SparkleShare folder to the bookmarks
switch (SparklePlatform.Name) { switch (SparklePlatform.Name) {
@ -95,12 +95,12 @@ namespace SparkleShare {
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 = " file://" + Folder + Process.StartInfo.Arguments =
" metadata::emblems " + Folder + " metadata::emblems [synced]";
"[synced]"; Console.WriteLine (Process.StartInfo.FileName + " " + Process.StartInfo.Arguments);
Process.Start ();
break; break;
} }
Process.Start ();
} }