diff options
author | sr55 <[email protected]> | 2008-01-02 16:58:39 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-01-02 16:58:39 +0000 |
commit | 8a1ca7778958645f470d5aefa82a9968eb511657 (patch) | |
tree | 23ede8ee2b2aeb44d8b2369e2263150c7df41186 /win/C#/Functions/Common.cs | |
parent | 5b716a71672b338188f6ef31676004b6e8373bf5 (diff) |
WinGui:
- Chapters.csv and dvdinfo.dat are now saved in the windows temporary folder. This should mean the application doesn't need admin rights on Vista. Thanks to "doubt" for the patch.
- Few UI theme tweaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1160 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Common.cs')
-rw-r--r-- | win/C#/Functions/Common.cs | 8 |
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();
|