summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Common.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Functions/Common.cs')
-rw-r--r--win/C#/Functions/Common.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs
index a0a7d72e9..ee4c4ca44 100644
--- a/win/C#/Functions/Common.cs
+++ b/win/C#/Functions/Common.cs
@@ -694,8 +694,7 @@ namespace Handbrake.Functions
}
else
{
- string path = Application.StartupPath.ToString();
- path = "\"" + path + "\\chapters.csv\" ";
+ string path = Path.Combine(Path.GetTempPath(), "chapters.csv");
ChapterMarkers = " --markers=" + path;
}
@@ -784,10 +783,7 @@ namespace Handbrake.Functions
{
try
{
- string appPath = Application.StartupPath.ToString();
- appPath = appPath + "\\";
-
- string path = appPath + "chapters.csv";
+ string path = Path.Combine(Path.GetTempPath(), "chapters.csv");
StringBuilder csv = new StringBuilder();