Browse Source

Fix #2431 test failed

When launch from test framework, the Application.StartupPath looks like "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\EXTENSIONS\TESTPLATFORM" which may not have write permission.
tags/4.1.7
celeron533 5 years ago
parent
commit
50699a9aac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Util/Util.cs

+ 1
- 1
shadowsocks-csharp/Util/Util.cs View File

@@ -38,7 +38,7 @@ namespace Shadowsocks.Util
{ {
if (isPortableMode) if (isPortableMode)
{ {
_tempPath = Directory.CreateDirectory(Path.Combine(Application.StartupPath, "ss_win_temp")).FullName;
_tempPath = Directory.CreateDirectory("ss_win_temp").FullName;
// don't use "/", it will fail when we call explorer /select xxx/ss_win_temp\xxx.log // don't use "/", it will fail when we call explorer /select xxx/ss_win_temp\xxx.log
} }
else else


Loading…
Cancel
Save