[chronojump/chronojump-importer] Escapes the command line arguments correctly.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/chronojump-importer] Escapes the command line arguments correctly.
- Date: Tue, 27 Sep 2016 11:20:28 +0000 (UTC)
commit 1be00634c43279e549978d50104dbe8f9d1d3cbb
Author: Carles Pina i Estany <carles pina cat>
Date: Tue Sep 27 13:20:01 2016 +0200
Escapes the command line arguments correctly.
src/gui/chronojump.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 959c237..efda199 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2421,7 +2421,7 @@ public partial class ChronoJumpWindow
processStartInfo = new ProcessStartInfo();
- processStartInfo.Arguments = " --source " + CommandLineEncoder.EncodeArgText
(source_filename) + " --destination " + CommandLineEncoder.EncodeArgText (destination_filename) + "
--source_session " + CommandLineEncoder.EncodeArgText (session);
+ processStartInfo.Arguments = " --source \"" + CommandLineEncoder.EncodeArgText
(source_filename) + "\" --destination \"" + CommandLineEncoder.EncodeArgText (destination_filename) + "\"
--source_session \"" + CommandLineEncoder.EncodeArgText (session) + "\"";
processStartInfo.FileName = importer_executable;
LogB.Debug ("chronojump-importer fileName:" + processStartInfo.FileName);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]