Escape paths before passing them to shell when "Open directory" is

pressed
This commit is contained in:
Alex Hudson 2010-08-02 21:33:14 +01:00
parent c9c5c6118d
commit e52f1b0af9

View file

@ -63,8 +63,9 @@ namespace SparkleShare {
open_folder_button.Clicked += delegate (object o, EventArgs args) {
Process process = new Process ();
process.StartInfo.FileName = "xdg-open";
process.StartInfo.Arguments = SparkleHelpers.CombineMore (SparklePaths.SparklePath,
string path = SparkleHelpers.CombineMore (SparklePaths.SparklePath,
SparkleRepo.Name);
process.StartInfo.Arguments = path.Replace(" ", "\\ ");
process.Start ();
Destroy ();
};